From 71d8ef248f4f1a05646f5e1e7e6388a59f08b121 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 18:07:52 -0400 Subject: Eliminate some uses of sprintf() from common code. As part of this, add DIR_SEPARATOR_S as a string version of the DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated on the C heap rather than the zone heap. This is a first step towards fixing #371. --- src/doomtype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/doomtype.h') diff --git a/src/doomtype.h b/src/doomtype.h index fdcdb66b..626d69a8 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -97,11 +97,13 @@ typedef uint8_t byte; #ifdef _WIN32 #define DIR_SEPARATOR '\\' +#define DIR_SEPARATOR_S "\\" #define PATH_SEPARATOR ';' #else #define DIR_SEPARATOR '/' +#define DIR_SEPARATOR_S "/" #define PATH_SEPARATOR ':' #endif -- cgit v1.2.3