diff --git a/source/src/pch.h b/source/src/pch.h index b73f26e3..ba5943d7 100644 --- a/source/src/pch.h +++ b/source/src/pch.h @@ -8,14 +8,7 @@ #undef gamma #endif -#ifdef _DEBUG -#include -#endif - #include -#ifdef WIN32 - #define strcasecmp(a,b) _stricmp(a,b) -#endif #include #include #include diff --git a/source/src/tools.h b/source/src/tools.h index a45ba662..a0894933 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -18,6 +18,8 @@ typedef unsigned int uint; #else #define ASSERT(c) if(!(c)) { __asm int 3 } #endif + +#include #define DEBUG(v) if(DEBUGCOND) { std::cout << behindpath(__FILE__) << ":" << __LINE__ << " " << __FUNCTION__ << "(..) " << v << std::endl; } #define DEBUGVAR(v) if(DEBUGCOND) { std::cout << behindpath(__FILE__) << ":" << __LINE__ << " " << __FUNCTION__ << "(..) " << #v << " = " << v << std::endl; } #else @@ -90,6 +92,7 @@ static inline float round(float x) { return floor(x + 0.5f); } #pragma warning (disable: 4996) // 'strncpy' was declared deprecated #endif +#define strcasecmp(a,b) _stricmp(a,b) #define PATHDIV '\\' #else #define __cdecl