Re: [AD] trying to make allegro compatible with MFC

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


> > About #define NO_STRICT
> > [...]
>
> Yes, it causes some problems with END_OF_MAIN()

Quite right. The NO_STRICT define is required for programs that both use the
'magic main' emulation and include the windows.h header file, because the
'main' emulation is not correctly prototyped.

So we have three options:
- staying with NO_STRICT at the expense of a few problems with programs that
mix Allegro and the Win32 API,
- removing NO_STRICT and modifying the 'main' emulation,
- removing NO_STRICT and simply requiring that programs which include
winalleg.h don't use the 'main' emulation.

Meanwhile, are you ok with the attached winalleg.h file ?

-Eric

Attachment: winalleg.h
Description: Binary data



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