From 61e0977e10f49d43e76b1de0f9433379fa985d96 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Fri, 14 Aug 2015 17:32:34 +0200 Subject: Protect all calls to isnan, isinf and isfinite with parentheses. --- test/main.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/main.h') 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 -- cgit v1.2.3