summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/mplibdir/ChangeLog6
-rw-r--r--Build/source/texk/web2c/mplibdir/mp.w6
2 files changed, 3 insertions, 9 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog
index cdcca76465f..61360ed6739 100644
--- a/Build/source/texk/web2c/mplibdir/ChangeLog
+++ b/Build/source/texk/web2c/mplibdir/ChangeLog
@@ -1,8 +1,6 @@
-2019-03-06 Akira Kakuto <kakuto@w32tex.org>
+2019-03-06 Luigi Scarso <luigi.scarso@gmail.com>
+ * Code clean-up.
- * mp.w: Avoid C1017 error in the case of MSC.
- The preprocessor macro #if INTEGER_TYPE == long
- is OK in gcc, but gives C1017 error in MSC.
2019-01-28 Andreas Scherer <https://ascherer.github.io>
* mpost.w: TeXnical nitpicking.
diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w
index 77e33f8ff0e..9c3e36844e3 100644
--- a/Build/source/texk/web2c/mplibdir/mp.w
+++ b/Build/source/texk/web2c/mplibdir/mp.w
@@ -127,9 +127,8 @@ typedef int boolean;
typedef int integer;
#define MPOST_ABS abs
#else
-#ifndef _MSC_VER
/* See source/texk/web2c/w2c/config.h */
-#if INTEGER_TYPE == long
+#if INTEGER_MAX == LONG_MAX /* this should mean INTEGER_TYPE == long */
#ifdef HAVE_LABS
#define MPOST_ABS labs
#else
@@ -138,9 +137,6 @@ typedef int integer;
#else
#define MPOST_ABS abs
#endif /* if INTEGER_TYPE == long */
-#else /* _MSC_VER */
-#define MPOST_ABS abs
-#endif /* !_MSC_VER */
#endif /* ifndef INTEGER_TYPE */