Skip to contentSkip to conversation

Fix SDL include path.

PATCH New Stefan Weil 1 participant 1 message Jun 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix SDL include path.

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.

---
 hw/baum.c |    2 +-
 vl.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
hw/baum.c +1 -1
index f6d6e67..203684e 100644
@@ -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
vl.c +1 -1
index bdd78cf..40fc3a4 100644
@@ -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)
 {
Signature · 1 line
1.5.6.5