Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Defines the XBT_PUBLIC macro that specify public functions of an API.
[simgrid.git] / src / portable.h
index bde3a5e..86bba4e 100644 (file)
@@ -14,7 +14,7 @@
 /* 
  * win32 or win64 (__WIN32 is defined for win32 and win64 applications, __TOS_WIN__ is defined by xlC).        
 */ 
 /* 
  * win32 or win64 (__WIN32 is defined for win32 and win64 applications, __TOS_WIN__ is defined by xlC).        
 */ 
-#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
+#ifdef _WIN32
 # include "win32/config.h"
 #  include <windows.h>
 #else
 # include "win32/config.h"
 #  include <windows.h>
 #else
@@ -184,6 +184,8 @@ const char *hexa_str(unsigned char *data, int size, int downside);
 
 #endif /* #if defined (_XBT_USE_DECLSPEC) */
 
 
 #endif /* #if defined (_XBT_USE_DECLSPEC) */
 
+#define XBT_PUBLIC _XBT_DECLSPEC
+
 #if !defined (_XBT_CALL)
 #define _XBT_CALL
 #endif
 #if !defined (_XBT_CALL)
 #define _XBT_CALL
 #endif