From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHMs8-0001jv-Eu for qemu-devel@nongnu.org; Thu, 18 Jun 2009 15:02:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHMs3-0001c1-KU for qemu-devel@nongnu.org; Thu, 18 Jun 2009 15:02:03 -0400 Received: from [199.232.76.173] (port=57727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHMs3-0001br-Fe for qemu-devel@nongnu.org; Thu, 18 Jun 2009 15:01:59 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:56465) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHMs2-0007wh-Ih for qemu-devel@nongnu.org; Thu, 18 Jun 2009 15:01:58 -0400 Message-ID: <4A3A8F22.2080907@mail.berlios.de> Date: Thu, 18 Jun 2009 21:01:54 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Win32: Fix compilation with SDL. References: <1245348663-9022-1-git-send-email-weil@mail.berlios.de> <4A3A8B77.2020109@codemonkey.ws> In-Reply-To: <4A3A8B77.2020109@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: QEMU Developers Anthony Liguori schrieb: > Stefan Weil wrote: >> `sdl-config --cflags` defines main = SDL_main >> on some platforms. One of these platforms is >> Windows with mingw32. >> > > How about adding -Umain to SDL_CFLAGS on _WIN32 and and __APPLE__? > > Regards, > > Anthony Liguori > I think -Dmain=SDL_main was added to the SDL CFLAGS because the SDL implementation needs some special startup code. Redefining main (or directly using the correct name) is typical for windows gui applications. -Umain would destroy this mechanism and create an executable which won't run in the worst case. By the way, I just tested the cross compiled i386/qemu.exe (with my patch) using wine on debian lenny: it works :-) Regards Stefan Weil