summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9d4f605..f97549f 100644
--- a/common.h
+++ b/common.h
@@ -23,6 +23,14 @@
#define ror(dest, value, shift) \
dest = ((value) >> shift) | ((value) << (32 - shift)) \
+#if defined(_WIN32) || defined(_WIN32_WCE)
+ #define PATH_SEPARATOR "\\"
+ #define PATH_SEPARATOR_CHAR '\\'
+#else
+ #define PATH_SEPARATOR "/"
+ #define PATH_SEPARATOR_CHAR '/'
+#endif
+
// These includes must be used before SDL is included.
#ifdef ARM_ARCH