Protect #undef max with #ifdef max.

This commit is contained in:
Rasmus Munk Larsen 2018-08-23 11:42:05 -07:00
parent d35880ed91
commit e51d9e473a

View File

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