Re: [AD] END_OF_MAIN, again |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] END_OF_MAIN, again
- From: Hrvoje Ban <spoofer255@xxxxxxxxxx>
- Date: Sun, 31 Jul 2005 16:24:38 +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:references; b=ewkOZ9i6weN6MINPYy+9solNt5T58Y3YyXzpvVx19jIRH1a5ARdE5QuSp1v2SgPQOKY/sIXNnmSEZH+W99iqUMvfdD8aaVdKG/h85/6pZdehihO9wKi2Zoo0j061xr6zIkjF3NMS1O+Jp3sGfU83EvJFxb69wI2JrUjkhidzR6k=
MSVC was throwing warning because I used AL_FUNC to declare
_mangled_main and __install_allegro which add _declspec(dllimport), I
switch to extern and it works fine. I also found more elegant way to
force linker to include WinMain. I added new function with WinMain
called _force_main_linking and in alwin.h define install_allegro to be
(_force_main_linking() ? install_allegro : install_allegro). This
solves problem about install_allegro not being inline.
Attachment:
alwin.h.diff
Description: Binary data
Attachment:
wmain.c
Description: Binary data