summaryrefslogtreecommitdiff
path: root/rts/PathUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'rts/PathUtils.h')
-rw-r--r--rts/PathUtils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/rts/PathUtils.h b/rts/PathUtils.h
index b1746f8769..8a42e34b54 100644
--- a/rts/PathUtils.h
+++ b/rts/PathUtils.h
@@ -12,10 +12,13 @@
// Use wchar_t for pathnames on Windows (#5697)
#if defined(mingw32_HOST_OS)
+#include "fs_rts.h"
+
#define pathcmp wcscmp
#define pathlen wcslen
-#define pathopen __rts_fwopen
-#define pathstat _wstat
+// N.B. Use the Win32-based file routines from utils/fs.
+#define pathopen FS(fwopen)
+#define pathstat FS(_wstat)
#define struct_stat struct _stat
#define open wopen
#define WSTR(s) L##s