diff --git a/src/util/lean_path.cpp b/src/util/lean_path.cpp index d2d12fc573..368a809397 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 e2ea0b3bf5..8a7046d658 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 );