diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2018-03-02 14:19:58 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-03-02 15:41:04 -0500 |
commit | 4a0d0d8062a204b867fc510c50e69a056ce7636f (patch) | |
tree | 0168120d4d35fa80a4512934ffc331ce0ca502ff /rts/PathUtils.c | |
parent | aef2b429072e3d3bbdbcb9e4082a0d86ba329d9e (diff) | |
download | haskell-4a0d0d8062a204b867fc510c50e69a056ce7636f.tar.gz |
Various Windows / Cross Compile to Windows fixes
- Adds quick-cross-ncg flavour.
- Fix windows wchar with `_s` for mingw
- Lookup windres, dllwrap and objdump
- Fix type.
Reviewers: bgamari, hvr, Phyx, erikd, simonmar
Reviewed By: bgamari
Subscribers: rwbarton, thomie, erikd, carter
Differential Revision: https://phabricator.haskell.org/D4430
Diffstat (limited to 'rts/PathUtils.c')
-rw-r--r-- | rts/PathUtils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/PathUtils.c b/rts/PathUtils.c index 1b0b729f07..def3f7e329 100644 --- a/rts/PathUtils.c +++ b/rts/PathUtils.c @@ -7,6 +7,11 @@ #include <libgen.h> #include <ctype.h> +#if defined(mingw32_HOST_OS) +/* Using Secure APIs */ +#define MINGW_HAS_SECURE_API 1 +#include <wchar.h> +#endif pathchar* pathdup(pathchar *path) { |