A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define the XBT_IMPORT_NO_PUBLIC macro for imported but not exported type
[simgrid.git]
/
include
/
xbt
/
misc.h
diff --git
a/include/xbt/misc.h
b/include/xbt/misc.h
index
1866117
..
256f4ec
100644
(file)
--- a/
include/xbt/misc.h
+++ b/
include/xbt/misc.h
@@
-86,22
+86,26
@@
#ifdef DLL_EXPORT
#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_PUBLIC_NO_IMPORT(type) __declspec(dllexport) type
+# define XBT_IMPORT_NO_PUBLIC(type) type
#else
# ifdef DLL_STATIC
#else
# ifdef DLL_STATIC
-# define XBT_PUBLIC(type) type
+# define XBT_PUBLIC(type)
type
# define XBT_PUBLIC_NO_IMPORT(type) type
# define XBT_PUBLIC_NO_IMPORT(type) type
+# define XBT_IMPORT_NO_PUBLIC(type) type
# else
# ifdef _WIN32
# else
# ifdef _WIN32
-# define XBT_PUBLIC(type)
__declspec(dllimport) type
+# define XBT_PUBLIC(type)
__declspec(dllimport) type
# define XBT_PUBLIC_NO_IMPORT(type) 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_PUBLIC_NO_IMPORT(type) type
+# define XBT_IMPORT_NO_PUBLIC(type) type
# endif
# endif
# endif
# endif
-#endif
+#endif