fix: __STDC_VERSION__ can be undefined in C++
[lttng-ust.git] / tests / utils / tap.h
index 0f0594308ea27b20a207853bf7a05e1384b7d77b..8be550bb3906e6cb3accdd4b7c5a43767789c48a 100644 (file)
@@ -47,7 +47,7 @@
                        skip(n, fmt, ## __VA_ARGS__);   \
                        continue;                       \
                }
-#elif __STDC_VERSION__ >= 199901L /* __GNUC__ */
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* __GNUC__ */
 # define ok(e, ...) ((e) ?                                             \
                     _gen_result(1, __func__, __FILE__, __LINE__,       \
                                 __VA_ARGS__) :                         \
This page took 0.02406 seconds and 4 git commands to generate.