From: cherierm Date: Fri, 6 Oct 2006 12:42:22 +0000 (+0000) Subject: Defines the XBT_PUBLIC macro that specify public functions of an API. X-Git-Tag: v3.3~2495 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ca494e4204fbd3d22631eb82cb0668385ba89bda?ds=sidebyside Defines the XBT_PUBLIC macro that specify public functions of an API. 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 --- diff --git a/src/portable.h b/src/portable.h index bde3a5e7a8..86bba4e68b 100644 --- a/src/portable.h +++ b/src/portable.h @@ -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 #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