summaryrefslogtreecommitdiff
path: root/utils/hp2ps
diff options
context:
space:
mode:
authorBernard Desmyter <bernarddesmyter@gmail.com>2015-06-12 11:01:45 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-06-12 11:01:58 +0200
commitce53138ff0d156e9f229d0adab745d2d4cfaf582 (patch)
tree2bda5ea5eec9b74b57e8e6d33769dec12a25b4f2 /utils/hp2ps
parentc60704fc405149407c155e297433f1cc299ae58a (diff)
downloadhaskell-ce53138ff0d156e9f229d0adab745d2d4cfaf582.tar.gz
Delete _MSC_VER when not necessary, fix #10511
Simplify some preprocessor expressions involving `_MSC_VER` because `_WIN32` is always defined when `_MSC_VER` is. Differential Revision: https://phabricator.haskell.org/D981
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 709bb1357d..74d1bce05b 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(_WIN32)
+#if defined(_WIN32)
DropSuffix(pathName, ".exe");
#endif
baseName = copystring(Basename(pathName));