From: cherierm Date: Wed, 7 Feb 2007 16:04:41 +0000 (+0000) Subject: define _XBT_CAlLL in this file for win32 c function calling convention X-Git-Tag: v3.3~2257 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ae873defb158f1e0b82d83292486ddf2e0ab603b?ds=sidebyside define _XBT_CAlLL in this file for win32 c function calling convention git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3102 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 81b87d0209..7d139f4533 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -59,8 +59,13 @@ /* * Function calling convention (not used for now) */ -#if !defined (_XBT_CALL) -#define _XBT_CALL + +#ifdef _WIN32 +# ifndef _XBT_CALL +# define _XBT_CALL __cdecl +# endif +#else +# define _XBT_CALL #endif /* Handle import/export stuff @@ -83,7 +88,8 @@ # define XBT_PUBLIC(type) extern type # endif # endif -#endif +#endif +