Re: [AD] No need for END_OF_MAIN (Windows)

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


> How do you disable the main mangling (ie, ALLEGRO_NO_MAGIC_MAIN) in this
> case?

I say we remove ALLEGRO_NO_MAGIC_MAIN and add this to winalleg.h

#define WinMain _mangled_main

This way if user use normal main() everything works as before and is
he use WinMain it would be called trought allegro's WinMain which
should work as it was called directly.




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