SDL2_sound/rosa-SDL2_sound.patch

53 lines
1.4 KiB
Diff
Raw Normal View History

2021-01-16 00:05:49 +01:00
diff --git a/examples/playsound.c b/examples/playsound.c
index a24d7fa..57387da 100644
--- a/examples/playsound.c
+++ b/examples/playsound.c
@@ -21,7 +21,7 @@
#ifdef _WIN32
#define SDL_MAIN_HANDLED /* this is a console-only app */
#endif
-#include "SDL.h"
+#include "SDL2/SDL.h"
#include "SDL_sound.h"
#define DEFAULT_DECODEBUF 16384
diff --git a/examples/playsound_simple.c b/examples/playsound_simple.c
index e720035..d7381df 100644
--- a/examples/playsound_simple.c
+++ b/examples/playsound_simple.c
@@ -18,7 +18,7 @@
#ifdef _WIN32
#define SDL_MAIN_HANDLED /* this is a console-only app */
#endif
-#include "SDL.h"
+#include "SDL2/SDL.h"
#include "SDL_sound.h"
/* global decoding state. */
diff --git a/src/SDL_sound.h b/src/SDL_sound.h
index 2e4e4c1..a87cea3 100644
--- a/src/SDL_sound.h
+++ b/src/SDL_sound.h
@@ -50,7 +50,7 @@
#ifndef _INCLUDE_SDL_SOUND_H_
#define _INCLUDE_SDL_SOUND_H_
-#include "SDL.h"
+#include "SDL2/SDL.h"
#if SDL_MAJOR_VERSION < 2
#error SDL2_sound requires SDL 2.0.0 or later.
diff --git a/src/libmodplug/libmodplug.h b/src/libmodplug/libmodplug.h
index f34a86a..37b1d84 100644
--- a/src/libmodplug/libmodplug.h
+++ b/src/libmodplug/libmodplug.h
@@ -9,7 +9,7 @@
#ifndef _INCL_LIBMODPLUG_H_
#define _INCL_LIBMODPLUG_H_
-#include "SDL.h"
+#include "SDL2/SDL.h"
#if ((defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)) && !defined(_WIN32)
#pragma GCC visibility push(hidden)