syscfg.h in the cvs tree (revision 1.53 to 1.54)
258 / LFS support /
259 #ifndef HAVE_OFF_T
260 #define off_t long
261 #endif
causes a win32 compile error.
gcc -c -I/c/Programs/gplibs32/include -I/mingw/include -D__USE_MINGW_ANSI_STDIO -O2 -pipe -I. -I../../src -I../../term/ -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DCONSOLE_SWITCH_CP -DGNUPLOT_SHARE_DIR=\"share\" -DDEVELOPMENT_VERSION -DUSE_MOUSE=1 -DWIN_IPC -I"/c/PROGRA~1/HELPWO~1/"include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_LIBGD -DHAVE_GD_H -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_CAIROPDF -DWXWIDGETS -DHAVE_LUA -DHAVE_LIBCACA -DHAVE_ICONV -DHAVE_LIBCERF -DNEED_CEXP -MMD -MT 'alloc.$(O)' -MF alloc.d -o alloc.co ../../src/alloc.c
In file included from ../../src/stdfn.h:47:0,
from ../../src/alloc.h:44,
from ../../src/alloc.c:44:
../../src/syscfg.h:260:15: error: two or more data types in declaration specifiers
#define off_t long
^
Any suggestions for this issue?
If win32 already knows that off_t is a data type then you need to #define HAVE_OFF_T in some header file or configuration script. If you are using mingw then I guess this means adding a line
CFLAGS += -DHAVE_OFF_T
in .../config/mingw/Makefile
Yes. The same idea had come to me! I have already overcome the issue.
Thanks!
I have made a further change in syscfg.h that may allow Windows 32bit to use data files larger than 2 GB. If you would like to test, it is in Patch #675
Diff: