|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Win32: Fix compilation with SDL. |
Date: | Thu, 18 Jun 2009 15:00:14 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
Stefan Weil wrote:
Ah, ok: it's simply a bad prototype of SDL_config: extern C_LINKAGE int SDL_main(int argc, char *argv[]); QEMU's main does not match: int main(int argc, char **argv, char **envp) So just redefining main will result in a wrong SDL_main with 3 instead of 2 arguments.
Can we not use getenv() instead of envp in main()? This was introduced for cache-utils which looks to be PPC specific.
Regards, Anthony Liguori
Regards, Stefan Weil
[Prev in Thread] | Current Thread | [Next in Thread] |