From df952279cb5ff08048cd70cdccab5119990e7973 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 4 Jul 2013 18:11:59 +0000 Subject: More details in a comment. svn path=/trunk/; revision=50382 --- ws_symbol_export.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ws_symbol_export.h') 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 -- cgit v1.2.3