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
[MSVC] use our extended xbt_malloc, but don't choke on 'strdup' that should read...
[simgrid.git]
/
include
/
xbt
/
base.h
diff --git
a/include/xbt/base.h
b/include/xbt/base.h
index
1241b63
..
748b475
100644
(file)
--- a/
include/xbt/base.h
+++ b/
include/xbt/base.h
@@
-89,7
+89,7
@@
# define XBT_INLINE
# endif
# else
# define XBT_INLINE
# endif
# else
-# if defined (_
_VISUALC__
)
+# if defined (_
MSC_VER
)
# define XBT_INLINE __inline
# else
# define XBT_INLINE inline
# define XBT_INLINE __inline
# else
# define XBT_INLINE inline
@@
-97,6
+97,12
@@
# endif /* __cplusplus */
#endif
# endif /* __cplusplus */
#endif
+#if defined(__GNUC__)
+# define XBT_ALWAYS_INLINE inline __attribute__ ((always_inline))
+#else
+# define XBT_ALWAYS_INLINE XBT_INLINE
+#endif
+
/* improvable on gcc (by evaluating arguments only once), but wouldn't be portable */
#ifdef MIN
# undef MIN
/* improvable on gcc (by evaluating arguments only once), but wouldn't be portable */
#ifdef MIN
# undef MIN