Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further cleanups of the DLL usage madness
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 26 Feb 2016 08:12:52 +0000 (09:12 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 26 Feb 2016 08:12:52 +0000 (09:12 +0100)
include/simgrid_config.h.in
tools/cmake/MakeLibWin.cmake
tools/cmake/src/internal_config.h.in

index abc09ae..6628613 100644 (file)
                                              SIMGRID_VERSION_MINOR, \
                                              SIMGRID_VERSION_PATCH)
 
                                              SIMGRID_VERSION_MINOR, \
                                              SIMGRID_VERSION_PATCH)
 
-/* take care of DLL usage madness */
-#ifdef _XBT_DLL_EXPORT
-       #ifndef DLL_EXPORT
-               #define DLL_EXPORT
-       #endif
-#else
-       #ifndef DLL_EXPORT
-               #define DLL_IMPORT
-       #endif
-#endif
-
 #cmakedefine _XBT_WIN32 @_XBT_WIN32@   /*this variable is set if it is a windows platform*/
 #cmakedefine _WIN32 @_WIN32@                   /*this variable is set if it is a 32 bits windows platform*/
 #cmakedefine _WIN64 @_WIN64@                   /*this variable is set if it is a 64 bits  windows platform*/
 #cmakedefine _XBT_WIN32 @_XBT_WIN32@   /*this variable is set if it is a windows platform*/
 #cmakedefine _WIN32 @_WIN32@                   /*this variable is set if it is a 32 bits windows platform*/
 #cmakedefine _WIN64 @_WIN64@                   /*this variable is set if it is a 64 bits  windows platform*/
-#cmakedefine __VISUALC__ @__VISUALC__@
-#ifdef _XBT_WIN32
-       #ifndef __GNUC__
-               #cmakedefine __GNUC__ @__GNUC__@
-       #endif
-#endif
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
index 2a2a69a..67bc91e 100644 (file)
@@ -4,11 +4,11 @@ add_library(simgrid SHARED ${simgrid_sources})
 
 if(MSVC)
   set_target_properties(simgrid  PROPERTIES 
 
 if(MSVC)
   set_target_properties(simgrid  PROPERTIES 
-       COMPILE_FLAGS "/D_XBT_DLL_EXPORT /DDLL_EXPORT" 
+       COMPILE_FLAGS "/DDLL_EXPORT" 
        VERSION ${libsimgrid_version} )
 else()
   set_target_properties(simgrid  PROPERTIES 
        VERSION ${libsimgrid_version} )
 else()
   set_target_properties(simgrid  PROPERTIES 
-       COMPILE_FLAGS "-D_XBT_DLL_EXPORT -DDLL_EXPORT" 
+       COMPILE_FLAGS "-DDLL_EXPORT" 
        LINK_FLAGS "-shared" 
        VERSION ${libsimgrid_version} 
        PREFIX "lib" SUFFIX ".dll" 
        LINK_FLAGS "-shared" 
        VERSION ${libsimgrid_version} 
        PREFIX "lib" SUFFIX ".dll" 
index 7b0a771..1f52559 100644 (file)
@@ -9,18 +9,6 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-/* Set somes variables for Windows compilation */
-
-#ifdef _XBT_DLL_EXPORT
-       #ifndef DLL_EXPORT
-               #define DLL_EXPORT
-       #endif
-#else
-       #ifndef DLL_IMPORT
-               #define DLL_IMPORT
-       #endif
-#endif
-
 /* If __thread is available */
 #cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@
 
 /* If __thread is available */
 #cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@