aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-03-23 15:37:45 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-03-23 15:37:45 +0100
commit9642fd7a937942037a3ea0d3c51b799be197782f (patch)
tree6ff10ef44faf350274ac0a87e5f4eb535dd73250 /test/main.h
parent28e02996df54240d44ead1bf827b867c22a224a9 (diff)
Replace all M_PI by EIGEN_PI and add a check to the testsuite.
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h
index e5f1a9ad5..bba5e7570 100644
--- a/test/main.h
+++ b/test/main.h
@@ -58,6 +58,10 @@
#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
+#ifdef M_PI
+#undef M_PI
+#endif
+#define M_PI please_use_EIGEN_PI_instead_of_M_PI
#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