[commit: ghc] master: rts: Remove use of __USE_MINGW_ANSI_STDIO (de34a71)

git at git.haskell.org git at git.haskell.org
Sat Jun 16 19:14:28 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/de34a71460a920e836b7057b4aac76d6202be890/ghc

>---------------------------------------------------------------

commit de34a71460a920e836b7057b4aac76d6202be890
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Jun 16 13:22:31 2018 -0400

    rts: Remove use of __USE_MINGW_ANSI_STDIO
    
    As pointed out in #12951, this was a temporary measure to allow GHC to be
    bootstrapped on Windows with GHC 7.10. This release is now out of our bootstrap
    support window so let's remove it.


>---------------------------------------------------------------

de34a71460a920e836b7057b4aac76d6202be890
 rts/PosixSource.h | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/rts/PosixSource.h b/rts/PosixSource.h
index edee5fa..13fd7b0 100644
--- a/rts/PosixSource.h
+++ b/rts/PosixSource.h
@@ -36,16 +36,3 @@
 #define _POSIX_C_SOURCE 200809L
 #define _XOPEN_SOURCE   700
 #endif
-
-#if defined(mingw32_HOST_OS)
-/* Without this gcc will warn about %ull and the like since some msvcrt versions
-   do not support them. See
-   https://sourceforge.net/p/mingw-w64/mailman/message/28557333/
-
-   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.
-  */
-#define __USE_MINGW_ANSI_STDIO 1
-#endif



More information about the ghc-commits mailing list