Re: [AD] Allegro + latest MinGW = off_t undefined

[ Thread Index | Date Index | More Archives ]

Or maybe replace off_t with int64_t - the uses I can see seem very suspicious, and most likely currently Allegro 5 will break if it is ever compiled on a system where off_t is only 32 bit.

On Sat, Oct 8, 2016 at 9:59 PM, SiegeLord <siegelordex@xxxxxxxxxx> wrote:
Sounds like the proper solution is to define _POSIX_C_SOURCE then, perhaps guarded by a check for ALLEGRO_GCC.


On 10/08/2016 06:31 PM, Edgar Reynaldo wrote:

I started a thread about this on :

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

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?


Allegro-developers mailing list

Allegro-developers mailing list

Mail converted by MHonArc 2.6.19+