More details in a comment.

svn path=/trunk/; revision=50382
This commit is contained in:
Guy Harris 2013-07-04 18:11:59 +00:00
parent df562fe9f5
commit df952279cb
1 changed files with 9 additions and 3 deletions

View File

@ -129,9 +129,15 @@
#endif
/*
* Use this for declarations; it can also be used for exported
* *function* definitions, but must not be used for exported *data*
* definitions.
* You *must* use this for exported data *declarations*; if you use
* WS_DLL_PUBLIC_DEF, some compilers, such as MSVC++, will complain
* about array definitions with no size.
*
* You must *not* use this for exported data *definitions*, as that
* will, for some compilers, cause warnings about items being initialized
* and declared extern.
*
* Either can be used for exported *function* declarations and definitions.
*/
#define WS_DLL_PUBLIC WS_DLL_PUBLIC_DEF extern