A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define _XBT_CAlLL in this file for win32 c function calling convention
[simgrid.git]
/
include
/
xbt
/
misc.h
diff --git
a/include/xbt/misc.h
b/include/xbt/misc.h
index
81b87d0
..
7d139f4
100644
(file)
--- a/
include/xbt/misc.h
+++ b/
include/xbt/misc.h
@@
-59,8
+59,13
@@
/*
* Function calling convention (not used for now)
*/
/*
* 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
#endif
/* Handle import/export stuff
@@
-83,7
+88,8
@@
# define XBT_PUBLIC(type) extern type
# endif
# endif
# define XBT_PUBLIC(type) extern type
# endif
# endif
-#endif
+#endif
+