Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to do what is needed to export data in DLL during cross-compiles
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 29 Aug 2006 23:58:29 +0000 (23:58 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 29 Aug 2006 23:58:29 +0000 (23:58 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2771 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/misc.h

index ef4ae2e..9b232f3 100644 (file)
 # define _XBT_INLINE 
 #endif
 
 # define _XBT_INLINE 
 #endif
 
+/* The cruft needed to export data in DLLs */
+#ifdef _WIN32
+# ifdef DLL_EXPORT 
+#  define XBT_EXPORT __declspec(dllexport) /* building the DLL */
+# else
+#  define XBT_EXPORT extern __declspec(dllimport) /* using the DLL */
+# endif
+#else
+# define XBT_EXPORT
+#endif
+
 
 
 #ifndef max
 
 
 #ifndef max