Re: [AD] No need for END_OF_MAIN (Windows) |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
This new patch defines main to _mangled_main like old way but instead of using END_OF_MAIN() to place WinMain it puts it into header. This works fine, but trick is that compiler will generate WinMain for each source file that includes allegro.h. GCC doesn't mind this and will link without problem, but I'm not sure about MSVC.
Attachment:
alwin.h.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |