diff --git a/JGE/include/DebugRoutines.h b/JGE/include/DebugRoutines.h index 6ac61edb2..14189928f 100644 --- a/JGE/include/DebugRoutines.h +++ b/JGE/include/DebugRoutines.h @@ -11,19 +11,18 @@ #include #include -#if defined (WIN32) || defined (LINUX) -#ifdef _DEBUG - using namespace std; template std::string ToHex(T* pointer) { std::ostringstream stream; - stream << std::hex << showbase << setfill('0') << setw(8) << (int) pointer; + stream << hex << showbase << setfill('0') << setw(8) << (int) pointer; return stream.str(); } +#if defined (WIN32) || defined (LINUX) +#ifdef _DEBUG #ifndef QT_CONFIG #define DebugTrace(inString) \