From: Arnaud Giersch Date: Wed, 7 Oct 2020 11:12:27 +0000 (+0200) Subject: Revert "Check C++ standard in xbt/base.h." X-Git-Tag: v3.26~371 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6167d441c55906ec80fad50c316a173080a0a954 Revert "Check C++ standard in xbt/base.h." There is no reason to enforce C++14 when it's not absolutely needed. This reverts commit 5004e62b0038cf93f205c6eacb0d46c17258ce89. --- diff --git a/include/xbt/base.h b/include/xbt/base.h index 860fdf007a..8d6b05d609 100644 --- a/include/xbt/base.h +++ b/include/xbt/base.h @@ -28,14 +28,15 @@ #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