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
added circle placement for ns3 wifi nodes
[simgrid.git]
/
include
/
xbt
/
base.h
diff --git
a/include/xbt/base.h
b/include/xbt/base.h
index 860fdf007a7b64175f4fd15b6d9ffae25ce5e20c..8d6b05d609d909f2f1f2bcf91353baa1b3782252 100644
(file)
--- a/
include/xbt/base.h
+++ b/
include/xbt/base.h
@@
-28,14
+28,15
@@
#endif
#if defined(__cplusplus)
#endif
#if defined(__cplusplus)
-#if __cplusplus < 201402L
-#error C++14 support is needed. Please upgrade your compiler and/or fix your compilation flags.
-#endif
+#if __cplusplus >= 201103L
#define XBT_ATTRIB_NORETURN [[noreturn]]
#define XBT_ATTRIB_NORETURN [[noreturn]]
+#endif
#if __cplusplus >= 201703L
#define XBT_ATTRIB_UNUSED [[maybe_unused]]
#endif
#if __cplusplus >= 201703L
#define XBT_ATTRIB_UNUSED [[maybe_unused]]
#endif
+#if __cplusplus >= 201402L
#define XBT_ATTRIB_DEPRECATED(mesg) [[deprecated(mesg)]]
#define XBT_ATTRIB_DEPRECATED(mesg) [[deprecated(mesg)]]
+#endif
#elif defined(__STDC_VERSION__)
#if __STDC_VERSION__ >= 201112L
#define XBT_ATTRIB_NORETURN _Noreturn
#elif defined(__STDC_VERSION__)
#if __STDC_VERSION__ >= 201112L
#define XBT_ATTRIB_NORETURN _Noreturn