texlive[50262] Build/source/texk/web2c/mplibdir: better MPOST_ABS

commits+lscarso at tug.org commits+lscarso at tug.org
Wed Mar 6 18:29:08 CET 2019


Revision: 50262
          http://tug.org/svn/texlive?view=revision&revision=50262
Author:   lscarso
Date:     2019-03-06 18:29:07 +0100 (Wed, 06 Mar 2019)
Log Message:
-----------
better MPOST_ABS (thanks to A.Kakuto)

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/mplibdir/ChangeLog
    trunk/Build/source/texk/web2c/mplibdir/mp.w

Modified: trunk/Build/source/texk/web2c/mplibdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/ChangeLog	2019-03-06 15:44:21 UTC (rev 50261)
+++ trunk/Build/source/texk/web2c/mplibdir/ChangeLog	2019-03-06 17:29:07 UTC (rev 50262)
@@ -1,8 +1,6 @@
-2019-03-06  Akira Kakuto  <kakuto at w32tex.org>
+2019-03-06  Luigi Scarso  <luigi.scarso at 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.

Modified: trunk/Build/source/texk/web2c/mplibdir/mp.w
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/mp.w	2019-03-06 15:44:21 UTC (rev 50261)
+++ trunk/Build/source/texk/web2c/mplibdir/mp.w	2019-03-06 17:29:07 UTC (rev 50262)
@@ -127,9 +127,8 @@
 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 @@
 #else
 #define MPOST_ABS abs
 #endif /* if INTEGER_TYPE == long */
-#else /* _MSC_VER */
-#define MPOST_ABS abs
-#endif /* !_MSC_VER */
 #endif /* ifndef INTEGER_TYPE */
 
 



More information about the tex-live-commits mailing list