@@ -8,6 +8,9 @@
#if CROWN_PLATFORM_WINDOWS
#include "core/strings/string_stream.inl"
+#ifndef WIN32_LEAN_AND_MEAN
+ #define WIN32_LEAN_AND_MEAN
+#endif
#include <windows.h>
#pragma warning(push)
#pragma warning(disable:4091) // 'keyword' : ignored on left of 'type' when no variable is declared
@@ -14,6 +14,9 @@
#include "core/os.h"
#include "core/strings/dynamic_string.inl"
#include "core/thread/thread.h"
namespace crown
@@ -16,6 +16,9 @@
#include <errno.h>
#elif CROWN_PLATFORM_WINDOWS
#include <tchar.h>
+ #ifndef WIN32_LEAN_AND_MEAN
+ #endif
#endif
@@ -26,6 +26,9 @@
#include <io.h> // _access
#include <stdio.h>
#if CROWN_PLATFORM_ANDROID
@@ -12,6 +12,9 @@
#include <sys/wait.h> // waitpid
#if CROWN_PLATFORM_POSIX
#include <pthread.h>
@@ -11,6 +11,9 @@
#include <limits.h> // LONG_MAX
#include <process.h>
#include <time.h> // clock_gettime
@@ -48,9 +48,12 @@
#include <algorithm>
#include <inttypes.h>
-#include <signal.h>
+ #include <signal.h>
-#include <windows.h>
+ #include <windows.h>
#endif // CROWN_PLATFORM_LINUX
LOG_SYSTEM(DATA_COMPILER, "data_compiler")