diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-04 18:11:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-04 18:11:59 +0000 |
commit | df952279cb5ff08048cd70cdccab5119990e7973 (patch) | |
tree | b096bac55ca8fdefd76e7225212ff84312fb577b /ws_symbol_export.h | |
parent | df562fe9f5cfe164c8e06c25e42f755a48e01aae (diff) |
More details in a comment.
svn path=/trunk/; revision=50382
Diffstat (limited to 'ws_symbol_export.h')
-rw-r--r-- | ws_symbol_export.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ws_symbol_export.h b/ws_symbol_export.h index 562dccf0b9..ed49ba80ae 100644 --- a/ws_symbol_export.h +++ b/ws_symbol_export.h @@ -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 |