From 9a2f1ba423e6b5ea1ebe3470aff5a69b68eae212 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 16 Sep 2014 21:29:51 -0700 Subject: [PATCH] fix(util): compilation problems when using msys2 Signed-off-by: Leonardo de Moura --- src/util/lean_path.cpp | 4 +++- src/util/thread.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/lean_path.cpp b/src/util/lean_path.cpp index d2d12fc57..368a80939 100644 --- a/src/util/lean_path.cpp +++ b/src/util/lean_path.cpp @@ -4,6 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ +#if defined(LEAN_WINDOWS) && !defined(LEAN_CYGWIN) +#include +#endif #include #include #include @@ -37,7 +40,6 @@ bool is_directory(char const * pathname) { #if defined(LEAN_WINDOWS) && !defined(LEAN_CYGWIN) // Windows version -#include static char g_path_sep = ';'; static char g_sep = '\\'; static char g_bad_sep = '/'; diff --git a/src/util/thread.h b/src/util/thread.h index e2ea0b3bf..8a7046d65 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -41,6 +41,7 @@ namespace this_thread = std::this_thread; #else // MULTI THREADING SUPPORT BASED ON THE BOOST LIBRARY #include +#include #define LEAN_THREAD_LOCAL thread_local namespace lean { void set_thread_stack_size(size_t );