Protect all calls to isnan, isinf and isfinite with parentheses.

This commit is contained in:
Christoph Hertzberg
2015-08-14 17:32:34 +02:00
parent 712e2fed17
commit 61e0977e10
5 changed files with 27 additions and 24 deletions

View File

@@ -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