Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Check C++ standard in xbt/base.h."
[simgrid.git] / include / xbt / base.h
index 860fdf0..8d6b05d 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