From 3b906f56ca95422749a68d3ffde2314849175abf Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 23 Sep 2008 21:03:36 +0000 Subject: [PATCH] pch shuffling git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2739 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/pch.h | 7 ------- source/src/tools.h | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) 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