aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/ThreadPool
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-23 11:42:05 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-23 11:42:05 -0700
commite51d9e473aa1f882d3b3106ec2427a44d2a76ceb (patch)
tree87723bfdcda2abb53b6ddc767076f693f46cb94e /unsupported/Eigen/CXX11/ThreadPool
parentd35880ed919d68e08279d78ac61a21054c1df480 (diff)
Protect #undef max with #ifdef max.
Diffstat (limited to 'unsupported/Eigen/CXX11/ThreadPool')
-rw-r--r--unsupported/Eigen/CXX11/ThreadPool2
1 files changed, 2 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/ThreadPool b/unsupported/Eigen/CXX11/ThreadPool
index 12aa07c7f..64ea83b7e 100644
--- a/unsupported/Eigen/CXX11/ThreadPool
+++ b/unsupported/Eigen/CXX11/ThreadPool
@@ -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