qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [Qemu-commits] [COMMIT 537fe2d] Make sure to use SD


From: Filip Navara
Subject: Re: [Qemu-devel] Re: [Qemu-commits] [COMMIT 537fe2d] Make sure to use SDL_CFLAGS everywhere we includeSDL headers
Date: Mon, 22 Jun 2009 07:02:21 +0200

On Mon, Jun 22, 2009 at 1:45 AM, Anthony Liguori<address@hidden> wrote:
> Filip Navara wrote:
>>
>> Please note that this commits breaks the Win32 port in several ways. First
>> problem is the SDL_main definition as already pointed out on the mailing
>> list. The other problem is that default mingw32 builds of SDL redirect
>> stderr/stdout through the SDL_main hack (and in incorrect way too, but I
>> will leave that for the SDL folks), so it's nearly impossible to getconsole
>> output - ie. error messages or help.
>
> I have a fix in queue, but...
>
> For mingw32 we don't want to use SDL_main?

I guess a cleaner approach would be to use SDL_main to keep the code
simple and portable. I've seen some crashes in the the past that could
be related to the DirectX initialization in the SDL's main wrapper. On
the other hand it requires a custom SDL build (only libSDLmain.a, not
the sdl.dll) and that should be documented at least.

> But we want to use it for OS X?

For OS X it's absolutely necessary, it initializes the QuickDraw libraries.

Best regards,
Filip Navara




reply via email to

[Prev in Thread] Current Thread [Next in Thread]