summaryrefslogtreecommitdiff
path: root/utils/hp2ps
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-06-11 20:31:24 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-06-11 20:31:27 +0200
commit0db0ac4a255931036c5859c3f22108f4e27ccd11 (patch)
treed29e8f47358e1443e147b8604ce3e756cd3b40cd /utils/hp2ps
parenta4318c668fa49ff3423feed184c0ce58227359b8 (diff)
downloadhaskell-0db0ac4a255931036c5859c3f22108f4e27ccd11.tar.gz
Removes all occurrences of __MINGW32__ (#10485)
In Haskell files, replace `__MINGW32__` by `mingw32_HOST_OS`. In .c and .h files, delete `__MINGW32__` when `_WIN32` is also tested because `_WIN32` is always defined when `__MINGW32__` is. Also replace `__MINGW32__` by `_WIN32` when used standalone for consistency. Differential Revision: https://phabricator.haskell.org/D971
Diffstat (limited to 'utils/hp2ps')
-rw-r--r--utils/hp2ps/Main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hp2ps/Main.c b/utils/hp2ps/Main.c
index 1c21d2b2cb..709bb1357d 100644
--- a/utils/hp2ps/Main.c
+++ b/utils/hp2ps/Main.c
@@ -143,7 +143,7 @@ nextarg: ;
if (!filter) {
pathName = copystring(argv[0]);
DropSuffix(pathName, ".hp");
-#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
+#if defined(_MSC_VER) || defined(_WIN32)
DropSuffix(pathName, ".exe");
#endif
baseName = copystring(Basename(pathName));