summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2015-08-21 09:20:32 +0900
committerTomoyuki Sahara <[email protected]>2015-08-21 09:20:32 +0900
commit042e4a43133f0476db107a3c9f5bf35bab681014 (patch)
treea8fd1b00a3165b7af34e870875be4edd63f95976 /src
parentefaf74672e1848464f78314f24d458c75c15408d (diff)
parent2467332c935e10a68db96de71fbf58648a72ebfb (diff)
downloadmruby-042e4a43133f0476db107a3c9f5bf35bab681014.tar.gz
mruby-042e4a43133f0476db107a3c9f5bf35bab681014.zip
Merge pull request #43 from jkutner/master
Made FILE_SEPERATOR platform dependent
Diffstat (limited to 'src')
-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