projects
/
lttng-ust.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
37cdae1
)
fix: __STDC_VERSION__ can be undefined in C++
author
Michael Jeanson
<mjeanson@efficios.com>
Thu, 17 Mar 2022 17:45:51 +0000
(13:45 -0400)
committer
Mathieu Desnoyers
<mathieu.desnoyers@efficios.com>
Tue, 22 Mar 2022 19:39:04 +0000
(15:39 -0400)
Caught on SLES12 with g++ 4.8 when enabling '-Wundef'.
Change-Id: Ib027f224a4f0ef021beb1709d8a626db62fe6d9c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/utils/tap.h
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils/tap.h
b/tests/utils/tap.h
index 0f0594308ea27b20a207853bf7a05e1384b7d77b..8be550bb3906e6cb3accdd4b7c5a43767789c48a 100644
(file)
--- a/
tests/utils/tap.h
+++ b/
tests/utils/tap.h
@@
-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.024987 seconds
and
4
git commands to generate.