summaryrefslogtreecommitdiff
path: root/rts/PathUtils.h
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2020-06-17 11:00:49 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-18 23:07:03 -0400
commitda18ff9935e72c7fe6127cb5d5d0c53654a204b0 (patch)
tree5f6e9e49a5df9783c4c6c30aaa4372387325bfef /rts/PathUtils.h
parent08c1cb0f30770acbf366423f085f8ef92f7f6a06 (diff)
downloadhaskell-da18ff9935e72c7fe6127cb5d5d0c53654a204b0.tar.gz
fix windows bootstrap due to linker changes
Diffstat (limited to 'rts/PathUtils.h')
-rw-r--r--rts/PathUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/PathUtils.h b/rts/PathUtils.h
index 0b35b214e0..b1746f8769 100644
--- a/rts/PathUtils.h
+++ b/rts/PathUtils.h
@@ -20,6 +20,7 @@
#define open wopen
#define WSTR(s) L##s
#define pathprintf swprintf
+#define pathcopy wcscpy
#define pathsize sizeof(wchar_t)
#else
#define pathcmp strcmp
@@ -30,6 +31,7 @@
#define WSTR(s) s
#define pathprintf snprintf
#define pathsize sizeof(char)
+#define pathcopy strcpy
#endif
pathchar* pathdup(pathchar *path);