From 2ea64ea1733380f103a109e70444321b4f0d274a Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 8 Aug 2010 15:17:27 +0200 Subject: Added #ifdef _WIN32 to Windows-specific files --HG-- branch : trunk --- src/server/shared/Debugging/WheatyExceptionReport.cpp | 2 ++ src/server/shared/Debugging/WheatyExceptionReport.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/server/shared/Debugging') diff --git a/src/server/shared/Debugging/WheatyExceptionReport.cpp b/src/server/shared/Debugging/WheatyExceptionReport.cpp index fa1cfe08215..ebc6a701996 100644 --- a/src/server/shared/Debugging/WheatyExceptionReport.cpp +++ b/src/server/shared/Debugging/WheatyExceptionReport.cpp @@ -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 \ No newline at end of file diff --git a/src/server/shared/Debugging/WheatyExceptionReport.h b/src/server/shared/Debugging/WheatyExceptionReport.h index 10d8ad0f629..e9af3f21d24 100644 --- a/src/server/shared/Debugging/WheatyExceptionReport.h +++ b/src/server/shared/Debugging/WheatyExceptionReport.h @@ -1,6 +1,8 @@ #ifndef _WHEATYEXCEPTIONREPORT_ #define _WHEATYEXCEPTIONREPORT_ +#ifdef _WIN32 + #include #if _MSC_VER < 1400 @@ -116,5 +118,6 @@ class WheatyExceptionReport }; extern WheatyExceptionReport g_WheatyExceptionReport; // global instance of class -#endif //WheatyExceptionReport +#endif // _WIN32 +#endif // _WHEATYEXCEPTIONREPORT_ -- cgit v1.2.3