X-Git-Url: https://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=include%2Flttng%2Fust-compiler.h;fp=include%2Flttng%2Fust-compiler.h;h=b7fd2c1c42bff2bac5d6bfc1c4f403a61fa82234;hp=51491a5f1628f44b79252df8aa71e95b44c3338c;hb=3615ef97a1075d302b5faad557154785135b7eb7;hpb=f27b0770c5fe934bd90c4b20103c59f9e7f96a5b diff --git a/include/lttng/ust-compiler.h b/include/lttng/ust-compiler.h index 51491a5f..b7fd2c1c 100644 --- a/include/lttng/ust-compiler.h +++ b/include/lttng/ust-compiler.h @@ -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