X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0b338053bf57bfe29230791472d1d4c6b16e0cb1..db96dfead061e8f4508551e8767e2c1abc7497e2:/include/xbt/misc.h diff --git a/include/xbt/misc.h b/include/xbt/misc.h index cb1ef332cb..cfa461ea58 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -131,14 +131,14 @@ /* Pack everything up statically */ #elif defined(DLL_STATIC) -# define XBT_PUBLIC(type) type +# define XBT_PUBLIC(type) extern type # define XBT_EXPORT_NO_IMPORT(type) type # define XBT_IMPORT_NO_EXPORT(type) type -# define XBT_PUBLIC_DATA(type) type +# define XBT_PUBLIC_DATA(type) extern type /* Link against the DLL */ -#elif (defined(_WIN32) && !defined(DLL_EXPORT)) +#elif (defined(_WIN32) && !defined(DLL_EXPORT) && !defined(DLL_STATIC)) # define XBT_PUBLIC(type) __declspec(dllimport) type # define XBT_EXPORT_NO_IMPORT(type) type # define XBT_IMPORT_NO_EXPORT(type) __declspec(dllimport) type @@ -149,7 +149,7 @@ # define XBT_PUBLIC(type) extern type # define XBT_EXPORT_NO_IMPORT(type) type # define XBT_IMPORT_NO_EXPORT(type) type -# define XBT_PUBLIC_DATA(type) type +# define XBT_PUBLIC_DATA(type) extern type #endif #if !defined (max) && !defined(__cplusplus)