summaryrefslogtreecommitdiffhomepage
path: root/src/file.c
diff options
context:
space:
mode:
authorJoe Kutner <[email protected]>2015-08-20 07:22:48 -0500
committerJoe Kutner <[email protected]>2015-08-20 07:22:48 -0500
commit2467332c935e10a68db96de71fbf58648a72ebfb (patch)
treea8fd1b00a3165b7af34e870875be4edd63f95976 /src/file.c
parentefaf74672e1848464f78314f24d458c75c15408d (diff)
downloadmruby-2467332c935e10a68db96de71fbf58648a72ebfb.tar.gz
mruby-2467332c935e10a68db96de71fbf58648a72ebfb.zip
Made FILE_SEPERATOR platform dependent
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file.c b/src/file.c
index 10d6b2268..feb8558ed 100644
--- a/src/file.c
+++ b/src/file.c
@@ -46,11 +46,12 @@
#include <pwd.h>
#endif
-#define FILE_SEPARATOR "/"
#if defined(_WIN32) || defined(_WIN64)
#define PATH_SEPARATOR ";"
+ #define FILE_SEPARATOR "\\"
#else
#define PATH_SEPARATOR ":"
+ #define FILE_SEPARATOR "/"
#endif
#ifndef LOCK_SH