summaryrefslogtreecommitdiff
path: root/games/scorched3d/files/patch-src_common_porting_windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'games/scorched3d/files/patch-src_common_porting_windows.h')
-rw-r--r--games/scorched3d/files/patch-src_common_porting_windows.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/scorched3d/files/patch-src_common_porting_windows.h b/games/scorched3d/files/patch-src_common_porting_windows.h
new file mode 100644
index 000000000000..35521a22ba48
--- /dev/null
+++ b/games/scorched3d/files/patch-src_common_porting_windows.h
@@ -0,0 +1,18 @@
+--- src/common/porting/windows.h.orig 2016-06-20 14:16:37 UTC
++++ src/common/porting/windows.h
+@@ -9,6 +9,7 @@
+ #include <ctype.h>
+ #include <common/Defines.h>
+
++#if defined(_WIN32)
+ typedef char * LPSTR;
+ typedef const char * LPCTSTR;
+ typedef unsigned int DWORD;
+@@ -27,6 +28,7 @@ typedef int LPARAM;
+ typedef int LRESULT;
+ typedef void * HDC;
+ typedef void * HGLRC;
++#endif
+
+ #define _strnicmp(a,b,c) strncasecmp(a,b,c)
+ #define stricmp(a,b) strcasecmp(a,b)