From 40c9923a8aa84bb273e003a92e7cbd644bdecc4c Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 15 Apr 2016 11:27:52 -0700 Subject: Fixed compilation errors with msvc --- unsupported/test/cxx11_runqueue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unsupported/test/cxx11_runqueue.cpp') diff --git a/unsupported/test/cxx11_runqueue.cpp b/unsupported/test/cxx11_runqueue.cpp index f1217a01b..b1e2dbd6d 100644 --- a/unsupported/test/cxx11_runqueue.cpp +++ b/unsupported/test/cxx11_runqueue.cpp @@ -9,6 +9,7 @@ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. #define EIGEN_USE_THREADS +#include #include "main.h" #include @@ -138,7 +139,7 @@ void test_empty_runqueue() // PopBack. Ensure that we don't crash, deadlock, and all sanity checks pass. void test_stress_runqueue() { - const int kEvents = 1 << 18; + static const int kEvents = 1 << 18; RunQueue q; std::atomic total(0); std::vector> threads; -- cgit v1.2.3