Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
define _XBT_CAlLL in this file for win32 c function calling convention
[simgrid.git] / include / xbt / misc.h
index 81b87d0..7d139f4 100644 (file)
 /* 
  * 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 
+