texlive[50261] Build/source/texk/web2c/mplibdir: Avoid C1017 error in

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Mar 6 16:44:21 CET 2019


Revision: 50261
          http://tug.org/svn/texlive?view=revision&revision=50261
Author:   kakuto
Date:     2019-03-06 16:44:21 +0100 (Wed, 06 Mar 2019)
Log Message:
-----------
Avoid C1017 error in the case of MSC.

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 13:23:58 UTC (rev 50260)
+++ trunk/Build/source/texk/web2c/mplibdir/ChangeLog	2019-03-06 15:44:21 UTC (rev 50261)
@@ -1,3 +1,9 @@
+2019-03-06  Akira Kakuto  <kakuto at w32tex.org>
+
+	* 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 13:23:58 UTC (rev 50260)
+++ trunk/Build/source/texk/web2c/mplibdir/mp.w	2019-03-06 15:44:21 UTC (rev 50261)
@@ -127,6 +127,7 @@
 typedef int integer;
 #define MPOST_ABS abs
 #else
+#ifndef _MSC_VER
 /* See source/texk/web2c/w2c/config.h */
 #if INTEGER_TYPE == long 
 #ifdef HAVE_LABS
@@ -137,6 +138,9 @@
 #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