[libbluray-devel] add directory separators to file.h
hpi1
git at videolan.org
Tue Apr 1 15:01:41 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Apr 1 11:51:49 2014 +0300| [1ea0a932eed83fe812324d8a14d1e8a9135d4ffe] | committer: hpi1
add directory separators to file.h
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1ea0a932eed83fe812324d8a14d1e8a9135d4ffe
---
src/file/file.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/file/file.h b/src/file/file.h
index 95c538d..bf267d0 100644
--- a/src/file/file.h
+++ b/src/file/file.h
@@ -27,9 +27,13 @@
#include <stdint.h>
-//#ifdef __LINUX__
-#define DIR_SEP "/"
-//#endif
+#ifdef _WIN32
+# define DIR_SEP "\\"
+# define DIR_SEP_CHAR '\\'
+#else
+# define DIR_SEP "/"
+# define DIR_SEP_CHAR '/'
+#endif
/*
* file access
More information about the libbluray-devel
mailing list