On Fri, Jul 07, 2017 at 06:16:47PM +0200, Martijn Dekker wrote: > Attached patch fixes a build failure on Panther (Mac OS X 10.3.9)[*]. It > has PRId64 but not SCNd64, so the latter needs to be checked for as well. > > - M. > > [*] Yes, I know how ancient that is. :)
fwiw, it had no problem with Sierra -- with clang. The MacPorts gcc7 has some preconceived notion about the datatypes (and ignores the system headers, producing a warning). > diff -ur lynx2.8.9dev.15.orig/WWW/Library/Implementation/HTUtils.h > lynx2.8.9dev.15/WWW/Library/Implementation/HTUtils.h > --- lynx2.8.9dev.15.orig/WWW/Library/Implementation/HTUtils.h Sun Jul 2 > 22:40:14 2017 > +++ lynx2.8.9dev.15/WWW/Library/Implementation/HTUtils.h Fri Jul 7 > 17:50:11 2017 > @@ -585,7 +585,7 @@ > * Printing/scanning-formats for "off_t", as well as cast needed to fit. > */ > #if defined(HAVE_LONG_LONG) && defined(HAVE_INTTYPES_H) && > defined(SIZEOF_OFF_T) > -#if (SIZEOF_OFF_T == 8) && defined(PRId64) > +#if (SIZEOF_OFF_T == 8) && defined(PRId64) && defined(SCNd64) > > #define PRI_off_t PRId64 > #define SCN_off_t SCNd64 -- Thomas E. Dickey <[email protected]> http://invisible-island.net ftp://invisible-island.net
signature.asc
Description: Digital signature
_______________________________________________ Lynx-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lynx-dev
