SDL2_sound/sdl2_sound-sdl2-path.patch
survolog (Andrey Grigorev) 1c338d4e2c Update to 2.0.1
2022-04-22 14:55:42 +03:00

36 lines
1.3 KiB
Diff

diff -ur SDL_sound-2.0.1/examples/playsound.c SDL_sound-2.0.1_patched/examples/playsound.c
--- SDL_sound-2.0.1/examples/playsound.c 2022-03-25 23:17:50.000000000 +0300
+++ SDL_sound-2.0.1_patched/examples/playsound.c 2022-04-20 09:06:24.649341390 +0300
@@ -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 -ur SDL_sound-2.0.1/examples/playsound_simple.c SDL_sound-2.0.1_patched/examples/playsound_simple.c
--- SDL_sound-2.0.1/examples/playsound_simple.c 2022-03-25 23:17:50.000000000 +0300
+++ SDL_sound-2.0.1_patched/examples/playsound_simple.c 2022-04-20 09:06:40.035635467 +0300
@@ -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 -ur SDL_sound-2.0.1/src/SDL_sound.h SDL_sound-2.0.1_patched/src/SDL_sound.h
--- SDL_sound-2.0.1/src/SDL_sound.h 2022-03-25 23:17:50.000000000 +0300
+++ SDL_sound-2.0.1_patched/src/SDL_sound.h 2022-04-20 09:07:06.588326724 +0300
@@ -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.