[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 6693665] Fix SDL include path.
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 6693665] Fix SDL include path. |
Date: |
Mon, 15 Jun 2009 02:26:41 -0000 |
From: Stefan Weil <address@hidden>
SDL header files can be included in two different ways:
* like this: #include <SDL/SDL.h>
* like this: #include <SDL.h>
The 1st alternative is simple and works in many cases.
The 2nd alternative needs sdl-config to get the
correct compiler flags. It is the recommended way
to write SDL includes and standard for QEMU.
The patch fixes two non-standard SDL includes.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/baum.c b/hw/baum.c
index c9135b5..b47ea34 100644
--- a/hw/baum.c
+++ b/hw/baum.c
@@ -30,7 +30,7 @@
#include <brlapi_constants.h>
#include <brlapi_keycodes.h>
#ifdef CONFIG_SDL
-#include <SDL/SDL_syswm.h>
+#include <SDL_syswm.h>
#endif
#if 0
diff --git a/vl.c b/vl.c
index bdd78cf..40fc3a4 100644
--- a/vl.c
+++ b/vl.c
@@ -114,7 +114,7 @@
#ifdef CONFIG_SDL
#ifdef __APPLE__
-#include <SDL/SDL.h>
+#include <SDL.h>
int qemu_main(int argc, char **argv, char **envp);
int main(int argc, char **argv)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 6693665] Fix SDL include path.,
Anthony Liguori <=