Commit 6da62535 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

rts/PosixSource.h: Define __USE_MINGW_ANSI_STDIO on Windows

This was removed in 8dc72f3c which cleaned up
PosixSource.h. Strangely, this only started breaking for me now.

Test Plan: Validate on Windows

Reviewers: simonmar, erikd, austin, Phyx

Reviewed By: Phyx

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #12951
parent 2bb099e5
......@@ -38,4 +38,17 @@
#define _XOPEN_SOURCE 700
#if defined(mingw32_HOST_OS)
/* Without this gcc will warn about %ull and the like since some msvcrt versions
do not support them. See
Note that this is implied by _POSIX_C_SOURCE in the msys2 toolchain that we
now use. However, we retain this explicit #define to preserve the ability to
bootstrap GHC with compilers still using msys (e.g. GHC 7.10.1 and 7.10.2).
This can be removed in for GHC 8.4. See #12951.
#endif /* POSIXSOURCE_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment