fix: __STDC_VERSION__ can be undefined in C++
[lttng-ust.git] / include / lttng / ust-compiler.h
index 51491a5f1628f44b79252df8aa71e95b44c3338c..b7fd2c1c42bff2bac5d6bfc1c4f403a61fa82234 100644 (file)
@@ -68,7 +68,7 @@
 #ifdef __cplusplus
 #define lttng_ust_static_assert(predicate, msg, c_identifier_msg)  \
        static_assert(predicate, msg)
-#elif __STDC_VERSION__ >= 201112L
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
 #define lttng_ust_static_assert(predicate, msg, c_identifier_msg)  \
        _Static_assert(predicate, msg)
 #else
This page took 0.039264 seconds and 4 git commands to generate.