Added #ifdef _WIN32 to Windows-specific files

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-08 15:17:27 +02:00
parent 68d24581aa
commit 2ea64ea173
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
// MSDN Magazine, 2002
// FILE: WheatyExceptionReport.CPP
//==========================================
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#pragma warning(disable:4996)
#pragma warning(disable:4312)
@@ -1037,3 +1038,4 @@ int __cdecl WheatyExceptionReport::_tprintf(const TCHAR * format, ...)
return retValue;
}
#endif // _WIN32

View File

@@ -1,6 +1,8 @@
#ifndef _WHEATYEXCEPTIONREPORT_
#define _WHEATYEXCEPTIONREPORT_
#ifdef _WIN32
#include <dbghelp.h>
#if _MSC_VER < 1400
@@ -116,5 +118,6 @@ class WheatyExceptionReport
};
extern WheatyExceptionReport g_WheatyExceptionReport; // global instance of class
#endif //WheatyExceptionReport
#endif // _WIN32
#endif // _WHEATYEXCEPTIONREPORT_