Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
added support for test s4u-network-ns3-wifi
[simgrid.git] / include / xbt / base.h
index 860fdf007a7b64175f4fd15b6d9ffae25ce5e20c..8d6b05d609d909f2f1f2bcf91353baa1b3782252 100644 (file)
 #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]]
+#endif
 #if __cplusplus >= 201703L
 #define XBT_ATTRIB_UNUSED [[maybe_unused]]
 #endif
+#if __cplusplus >= 201402L
 #define XBT_ATTRIB_DEPRECATED(mesg) [[deprecated(mesg)]]
+#endif
 #elif defined(__STDC_VERSION__)
 #if __STDC_VERSION__ >= 201112L
 #define XBT_ATTRIB_NORETURN _Noreturn