strange off_t type with mingw compilation
Brought to you by:
tjsa
I tried to compile the code with mingw to obtain a version runnable under windows without cygwin.
from a cygwin console, with mingw64-i686-gcc-core package installed, I ran
./configure CC=/usr/bin/i686-w64-mingw32-gcc.exe
Compilation works fine, and resulting exe is ok under Windows XP, and Seven, but under Windows 2000, "r" commands do nothing.
After some tests, it seems off_t type is weirdly defined thus in bbe.h line 52, I removed #ifdef and force define to be :
#define off_t long int
Seems enough at least for the small usage i'm concerned with but i suppose it's not the better way to fix this issue
Tested with i686-w64-mingw32-gcc (GCC) 4.9.2