mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-14 10:23:14 +08:00
Protect #undef max with #ifdef max.
This commit is contained in:
parent
d35880ed91
commit
e51d9e473a
@ -49,7 +49,9 @@
|
||||
// which trigger a check in test/main.h causing compilation to fail.
|
||||
// We work around the check here by removing the check for max in
|
||||
// the case where we have to emulate thread_local.
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
#include <unordered_map>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user