Re: [AD] No need for END_OF_MAIN (Windows) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] No need for END_OF_MAIN (Windows)
- From: <spoofer255@xxxxxxxxxx>
- Date: Sat, 14 May 2005 23:43:32 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kNhdizyFUHN5NLqnm+0lEjN+LfXzD23+3fblZWsL8Kt60RD0d78/6AdabmkTK/4ekY+8ecmQWOd5iQmXGwxf2HUuoy/cF5lf42cd0reg1n7bTijL5/7/Y8gVmTjqHqjaiovwqCAQeKFQd5oVkuot2lPBARC/ZnTDNRbkzWLgdkw=
> 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.