diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-06 17:29:07 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-06 17:29:07 +0000 |
commit | 88d52bfd345feff22ca14aaf8c9d2ea92dddc3c8 (patch) | |
tree | c1bcfde5298f4207e1df977713c3f9e80c187b0c /Build/source/texk/web2c | |
parent | b655e1ef5e1ef5a7c7bac0b616c168ddd1bd8078 (diff) |
better MPOST_ABS (thanks to A.Kakuto)
git-svn-id: svn://tug.org/texlive/trunk@50262 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 6 |
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 */ |