Parcourir la source

Fix some headers to include their dependencies properly.

Tony Wasserka il y a 11 ans
Parent
commit
27280f178b
2 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 4 0
      src/common/common_funcs.h
  2. 3 0
      src/common/log.h

+ 4 - 0
src/common/common_funcs.h

@@ -4,6 +4,8 @@
 
 
 #pragma once
 #pragma once
 
 
+#include "common_types.h"
+
 #ifdef _WIN32
 #ifdef _WIN32
 #define SLEEP(x) Sleep(x)
 #define SLEEP(x) Sleep(x)
 #else
 #else
@@ -73,6 +75,8 @@ inline u64 _rotr64(u64 x, unsigned int shift){
 }
 }
 
 
 #else // WIN32
 #else // WIN32
+#include <locale.h>
+
 // Function Cross-Compatibility
 // Function Cross-Compatibility
     #define strcasecmp _stricmp
     #define strcasecmp _stricmp
     #define strncasecmp _strnicmp
     #define strncasecmp _strnicmp

+ 3 - 0
src/common/log.h

@@ -4,6 +4,9 @@
 
 
 #pragma once
 #pragma once
 
 
+#include "common/common_funcs.h"
+#include "common/msg_handler.h"
+
 #ifndef LOGGING
 #ifndef LOGGING
 #define LOGGING
 #define LOGGING
 #endif
 #endif