Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Defines the XBT_PUBLIC macro that specify public functions of an API.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 12:42:22 +0000 (12:42 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 12:42:22 +0000 (12:42 +0000)
Please, use this macro if you when you declare a new public function (exported in windows dll).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2864 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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).        
 */ 
-#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
+#ifdef _WIN32
 # 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) */
 
+#define XBT_PUBLIC _XBT_DECLSPEC
+
 #if !defined (_XBT_CALL)
 #define _XBT_CALL
 #endif