X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=gpsp.git;a=blobdiff_plain;f=common.h;fp=common.h;h=f97549fefe33a23128e63bb1fdbfe2b81c5ac8b1;hp=9d4f605c49f3728a754d00bf740ffd8ebd205650;hb=d0944fc942fad418aed45245e4259780f2fc0697;hpb=a88b04319e4e8a00fb955ee085929039f0c34a49 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