From 023d86f78c882708358c37d7ba9b63aeda514643 Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 28 Feb 2007 19:21:37 +0000 Subject: [PATCH] define the XBT_IMPORT_NO_PUBLIC macro for imported but not exported type git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3175 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/misc.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 186611753b..256f4ecc3e 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -86,22 +86,26 @@ #ifdef DLL_EXPORT -# define XBT_PUBLIC(type) __declspec(dllexport) type +# define XBT_PUBLIC(type) __declspec(dllexport) type # define XBT_PUBLIC_NO_IMPORT(type) __declspec(dllexport) type +# define XBT_IMPORT_NO_PUBLIC(type) type #else # ifdef DLL_STATIC -# define XBT_PUBLIC(type) type +# define XBT_PUBLIC(type) type # define XBT_PUBLIC_NO_IMPORT(type) type +# define XBT_IMPORT_NO_PUBLIC(type) type # else # ifdef _WIN32 -# define XBT_PUBLIC(type) __declspec(dllimport) type +# define XBT_PUBLIC(type) __declspec(dllimport) type # define XBT_PUBLIC_NO_IMPORT(type) type -# else -# define XBT_PUBLIC(type) extern type +# define XBT_IMPORT_NO_PUBLIC(type) __declspec(dllimport) type +# else +# define XBT_PUBLIC(type) extern type # define XBT_PUBLIC_NO_IMPORT(type) type +# define XBT_IMPORT_NO_PUBLIC(type) type # endif # endif -#endif +#endif -- 2.20.1