fix: __STDC_VERSION__ can be undefined in C++
[lttng-ust.git] / tests / utils / tap.h
index 60455a07bd9fefa50d58de5fa563b67bdb4e59ff..f9f423ee22948a8a3085832b6a20e108ed9f3b7c 100644 (file)
@@ -28,7 +28,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.023513 seconds and 4 git commands to generate.