aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <none@none>2010-08-08 15:17:27 +0200
committerShauren <none@none>2010-08-08 15:17:27 +0200
commit2ea64ea1733380f103a109e70444321b4f0d274a (patch)
treeb318b1b6f46c61700cc7a66ba925862e93f7d0ed /src
parent68d24581aa1495fd13992685729ca6fce7e3571f (diff)
Added #ifdef _WIN32 to Windows-specific files
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/Debugging/WheatyExceptionReport.cpp2
-rw-r--r--src/server/shared/Debugging/WheatyExceptionReport.h5
2 files changed, 6 insertions, 1 deletions
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 <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_