SDL2_sound/sdl2_sound-2.0.2-sdl2-path.patch
2023-10-06 17:35:10 +02:00

58 lines
2.1 KiB
Diff

diff -rupN SDL_sound-2.0.2.old/cmake/test/main.c SDL_sound-2.0.2/cmake/test/main.c
--- SDL_sound-2.0.2.old/cmake/test/main.c 2023-06-29 16:48:42.000000000 +0200
+++ SDL_sound-2.0.2/cmake/test/main.c 2023-10-06 17:19:02.567869572 +0200
@@ -1,5 +1,5 @@
#define SDL_MAIN_HANDLED
-#include "SDL.h"
+#include "SDL2/SDL.h"
#include "SDL_sound.h"
#include <stdio.h>
diff -rupN SDL_sound-2.0.2.old/examples/playsound.c SDL_sound-2.0.2/examples/playsound.c
--- SDL_sound-2.0.2.old/examples/playsound.c 2023-06-29 16:48:42.000000000 +0200
+++ SDL_sound-2.0.2/examples/playsound.c 2023-10-06 17:19:47.945301715 +0200
@@ -13,7 +13,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"
#include <stdio.h>
diff -rupN SDL_sound-2.0.2.old/examples/playsound_simple.c SDL_sound-2.0.2/examples/playsound_simple.c
--- SDL_sound-2.0.2.old/examples/playsound_simple.c 2023-06-29 16:48:42.000000000 +0200
+++ SDL_sound-2.0.2/examples/playsound_simple.c 2023-10-06 17:19:36.521976482 +0200
@@ -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 -rupN SDL_sound-2.0.2.old/src/libmodplug/fastmix.c SDL_sound-2.0.2/src/libmodplug/fastmix.c
--- SDL_sound-2.0.2.old/src/libmodplug/fastmix.c 2023-06-29 16:48:42.000000000 +0200
+++ SDL_sound-2.0.2/src/libmodplug/fastmix.c 2023-10-06 17:23:54.582977272 +0200
@@ -8,7 +8,7 @@
#include "libmodplug.h"
#include <math.h>
-#include "SDL_stdinc.h"
+#include "SDL2/SDL_stdinc.h"
#define floor SDL_floor
/*
diff -rupN SDL_sound-2.0.2.old/src/SDL_sound.h SDL_sound-2.0.2/src/SDL_sound.h
--- SDL_sound-2.0.2.old/src/SDL_sound.h 2023-06-29 16:48:42.000000000 +0200
+++ SDL_sound-2.0.2/src/SDL_sound.h 2023-10-06 17:20:09.766868798 +0200
@@ -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.