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 f2db436..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
@@ -82,7 +87,9 @@
 #       else
 #      define XBT_PUBLIC(type)         extern type
 #    endif
-#endif    
+#  endif
+#endif 
+   
 
 
 
@@ -125,3 +132,7 @@ XBT_PUBLIC(const char *)xbt_procname(void);
 SG_END_DECL()
 
 #endif /* XBT_MISC_H */
+
+
+
+