|
@@ -237,13 +237,13 @@
|
|
|
#if defined(WINCE)
|
|
|
#define strdup _strdup
|
|
|
#endif /* WINCE */
|
|
|
|
|
|
/* NOTE: the string returned by these functions is only valid until the next
|
|
|
* call to the same function and is not thread- or reentrancy-safe */
|
|
|
#if !defined(STRGEN)
|
|
|
#if !defined(STRGEN) && !defined(SETTINGSGEN)
|
|
|
#if defined(WIN32) || defined(WIN64)
|
|
|
char *getcwd(char *buf, size_t size);
|
|
|
#include <tchar.h>
|
|
|
#include <io.h>
|
|
|
|
|
|
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
|
|
@@ -261,13 +261,13 @@
|
|
|
#define fopen(file, mode) fopen(OTTD2FS(file), mode)
|
|
|
const char *FS2OTTD(const char *name);
|
|
|
const char *OTTD2FS(const char *name);
|
|
|
#define SQ2OTTD(name) (name)
|
|
|
#define OTTD2SQ(name) (name)
|
|
|
#endif /* WIN32 */
|
|
|
#endif /* STRGEN */
|
|
|
#endif /* STRGEN || SETTINGSGEN */
|
|
|
|
|
|
#if defined(WIN32) || defined(WIN64) || defined(__OS2__) && !defined(__INNOTEK_LIBC__)
|
|
|
#define PATHSEP "\\"
|
|
|
#define PATHSEPCHAR '\\'
|
|
|
#else
|
|
|
#define PATHSEP "/"
|