diff options
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/HTString.c | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTUtils.h | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTString.c b/WWW/Library/Implementation/HTString.c index 187f1b1b..4a1ab43a 100644 --- a/WWW/Library/Implementation/HTString.c +++ b/WWW/Library/Implementation/HTString.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTString.c,v 1.73 2016/11/24 15:29:50 tom Exp $ + * $LynxId: HTString.c,v 1.74 2018/02/15 01:54:27 tom Exp $ * * Case-independent string comparison HTString.c * @@ -795,7 +795,7 @@ PUBLIC_IF_FIND_LEAKS char *StrAllocVsprintf(char **pstr, VA_POINT(char *); if (prec < 0) - prec = strlen(pval); + prec = (int) strlen(pval); used = 's'; break; case 'p': diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index 4f2c4670..9f49d92c 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTUtils.h,v 1.125 2017/07/07 20:49:16 Martijn.Dekker Exp $ + * $LynxId: HTUtils.h,v 1.126 2018/02/19 21:37:37 tom Exp $ * * Utility macros for the W3 code library * MACROS FOR GENERAL USE @@ -625,6 +625,16 @@ extern int WWW_TraceMask; #endif /* + * MinGW-32 uses only 32-bit DLL, which limits printing. + */ +#if defined(__MINGW32__) +#undef PRI_off_t +#undef CAST_off_t +#define PRI_off_t "ld" +#define CAST_off_t(n) (long)(n) +#endif + +/* * Printing-format for "time_t", as well as cast needed to fit. */ #if defined(HAVE_LONG_LONG) && defined(HAVE_INTTYPES_H) && defined(SIZEOF_TIME_T) |