texlive[53728] Build/source/texk/web2c/mplibdir/mp.w: avoid multiple
commits+lscarso at tug.org
commits+lscarso at tug.org
Sun Feb 9 19:08:16 CET 2020
Revision: 53728
http://tug.org/svn/texlive?view=revision&revision=53728
Author: lscarso
Date: 2020-02-09 19:08:15 +0100 (Sun, 09 Feb 2020)
Log Message:
-----------
avoid multiple definition of 'mp_snprintf_res'
Modified Paths:
--------------
trunk/Build/source/texk/web2c/mplibdir/mp.w
Modified: trunk/Build/source/texk/web2c/mplibdir/mp.w
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/mp.w 2020-02-09 13:11:10 UTC (rev 53727)
+++ trunk/Build/source/texk/web2c/mplibdir/mp.w 2020-02-09 18:08:15 UTC (rev 53728)
@@ -2960,12 +2960,16 @@
}
@ @<Internal library declarations@>=
-int mp_snprintf_res ;
+/*int mp_snprintf_res ;*/
/* Some compilers (i.e. gcc 8.2.0 ) complained with the old */
/* #define mp_snprintf (void)snprintf */
/* about truncation. For the moment we store the result. */
-# define mp_snprintf mp_snprintf_res=snprintf
+/*# define mp_snprintf mp_snprintf_res=snprintf */
+/* Now gcc 10 does't like common symbols, so we switch back */
+/* to the old define. */
+#define mp_snprintf (void)snprintf
+
@* Dynamic memory allocation.
The \MP\ system does nearly all of its own memory allocation, so that it
More information about the tex-live-commits
mailing list.