From 67a6bc4ab5be607c4a9f9a349dee629e864c2d42 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 16:16:47 +0300 Subject: Fix map delete on windows (concatenate paths correctly with / or \ depending on OS) --- src/filesys.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/filesys.h') diff --git a/src/filesys.h b/src/filesys.h index b74b34f3d..8bf43c3fa 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -24,6 +24,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "exceptions.h" +#ifdef _WIN32 // WINDOWS +#define DIR_DELIM "\\" +#define DIR_DELIM_C '\\' +#else // POSIX +#define DIR_DELIM "/" +#define DIR_DELIM_C '/' +#endif + namespace fs { -- cgit v1.2.3