From ae873defb158f1e0b82d83292486ddf2e0ab603b Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 7 Feb 2007 16:04:41 +0000 Subject: [PATCH] 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 --- include/xbt/misc.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 + -- 2.20.1