diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-03-06 15:44:21 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-03-06 15:44:21 +0000 |
commit | b655e1ef5e1ef5a7c7bac0b616c168ddd1bd8078 (patch) | |
tree | 5df0714adf75affb520464c60d38914d9e196795 /Build/source | |
parent | c4f771a2be42ef7a46974bea88d0a71987280e77 (diff) |
Avoid C1017 error in the case of MSC.
git-svn-id: svn://tug.org/texlive/trunk@50261 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index f2fb620efc4..cdcca76465f 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,9 @@ +2019-03-06 Akira Kakuto <kakuto@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. diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w index e0999e187f5..77e33f8ff0e 100644 --- a/Build/source/texk/web2c/mplibdir/mp.w +++ b/Build/source/texk/web2c/mplibdir/mp.w @@ -127,6 +127,7 @@ 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 #ifdef HAVE_LABS @@ -137,6 +138,9 @@ 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 */ |