X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-compiler.h;h=b7fd2c1c42bff2bac5d6bfc1c4f403a61fa82234;hb=09e0e70888089f7ad48d6a5b88fea6fd32701600;hp=51491a5f1628f44b79252df8aa71e95b44c3338c;hpb=25f62b0a70363a36b8af93c7f7a010532072f861;p=lttng-ust.git 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