mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
61019c3130
On AMD64 apparently, off_t is long but ELinks detected SIZEOF_OFF_T == 8 and defined OFF_T_FORMAT as "lld", which expects long long and so causes GCC to warn about a mismatching format specifier. Because --enable-debug adds -Werror to $CFLAGS, this warning breaks the build. When both SIZEOF_LONG and SIZEOF_LONG_LONG are 8, ELinks cannot know which type it should use. To fix this, do not attempt to find a format specifier for off_t itself. Instead cast all printed off_t values to a new typedef off_print_T that is large enough, and replace OFF_T_FORMAT with OFF_PRINT_FORMAT which is suitable for off_print_T altough not necessarily for off_t. ELinks already had a similar scheme with time_print_T and TIME_PRINT_FORMAT. |
||
---|---|---|
.. | ||
beos | ||
os2 | ||
riscos | ||
unix | ||
win32 | ||
ascii.h | ||
generic.h | ||
getifaddrs.c | ||
getifaddrs.h | ||
Makefile | ||
newwin.c | ||
newwin.h | ||
osdep.c | ||
osdep.h | ||
signals.c | ||
signals.h | ||
stat.h | ||
stub.c | ||
stub.h | ||
sysname.c | ||
sysname.h | ||
system.h | ||
types.h |