Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dll for simgrid and protect DLL_EXPORT and DLL_IMPORT from multiple definition
[simgrid.git] / buildtools / Cmake / gras_config.h.in
index 73e4257..fe82221 100644 (file)
@@ -4,12 +4,18 @@
 /* Set somes variables for Windows compilation */
 
 #ifdef _XBT_DLL_EXPORT
-       #define DLL_EXPORT
+       #ifndef DLL_EXPORT
+               #define DLL_EXPORT
+       #endif
 #else
        #ifdef _XBT_DLL_STATIC
-               #define DLL_STATIC
+               #ifndef DLL_STATIC
+                       #define DLL_STATIC
+               #endif
        #else
-               #define DLL_IMPORT
+               #ifndef DLL_EXPORT
+                       #define DLL_IMPORT
+               #endif
        #endif
 #endif