PR 719: fix real/imag namespace conflict

This commit is contained in:
Gael Guennebaud
2019-10-08 09:15:17 +02:00
parent 7a43af1a33
commit 87427d2eaa
6 changed files with 25 additions and 17 deletions

View File

@@ -91,6 +91,11 @@
#define isfinite(X) please_protect_your_isfinite_with_parentheses
#endif
// test possible conflicts
struct real {};
struct imag {};
#ifdef M_PI
#undef M_PI
#endif