[AD] Allegro + latest MinGW = off_t undefined

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I started a thread about this on a.cc :


Basically, when you compile an allegro program with the latest MinGW runtime
(3.21.1 or 3.22.2) and use -std=c++11, you get errors saying off_t is undefined.

mingw/include/sys/types.h defines off_t, but only in certain cases,
such as when _POSIX_C_SOURCE is defined before including it
(in mingwrt 3.22.2) or when _NO_OLDNAMES is undefined (in mingwrt 3.21.1).

So allegro programs compiled with -std=c++11 fail to compile.

What should we do?


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/