aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-08-14 17:32:34 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-08-14 17:32:34 +0200
commit61e0977e10f49d43e76b1de0f9433379fa985d96 (patch)
treed59991d1338db8bd3e30e5f1a3cc30acd9bbf736 /test/main.h
parent712e2fed1705746847d1cbdce01094eb42a45139 (diff)
Protect all calls to isnan, isinf and isfinite with parentheses.
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h
index 0d03d4853..2797e8623 100644
--- a/test/main.h
+++ b/test/main.h
@@ -55,6 +55,9 @@
// compiler error.
#define min(A,B) please_protect_your_min_with_parentheses
#define max(A,B) please_protect_your_max_with_parentheses
+#define isnan(X) please_protect_your_isnan_with_parentheses
+#define isinf(X) please_protect_your_isinf_with_parentheses
+#define isfinite(X) please_protect_your_isfinite_with_parentheses
#define FORBIDDEN_IDENTIFIER (this_identifier_is_forbidden_to_avoid_clashes) this_identifier_is_forbidden_to_avoid_clashes
// B0 is defined in POSIX header termios.h