summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2008-08-24 16:25:52 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2008-08-24 16:25:52 +0000
commit23665a7b9366a567357ebaaec7ebf73a6735da8b (patch)
tree06339bf3166c3026a7379b848909347f1c2d058d /Source/Core/Common
parentf44a06465ab2d05c6db793e02aa0aba787bafdda (diff)
Cross compatibility function union (strcasecmp, unlink)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@293 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/Common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h
index b07d734a7d..fb2ffc97ab 100644
--- a/Source/Core/Common/Src/Common.h
+++ b/Source/Core/Common/Src/Common.h
@@ -22,6 +22,15 @@
#include <stdio.h>
#include <string.h>
+// Function Cross-Compatibility
+#ifdef _WIN32
+#define strcasecmp _stricmp
+#define unlink _unlink
+#else
+#define _stricmp strcasecmp
+#define _unlink unlink
+#endif
+
#ifdef _WIN32
#define POSIX 0
#define NOMINMAX