From e8dd951c6c2bc3f3496eec26192b9b81c062ca1a Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 23 Jul 2022 04:18:22 +0200 Subject: Use find_package for SDL libraries CMake already distributes FindSDL*.cmake files for SDL and SDL_mixer, which support custom prefixes via environment variables, removing the need for ad-hoc logic in Win9x builds. Also, according to FindSDL.cmake, #include is the preferred way for portability reasons, instead of #include , which is the option that has been used so far. --- src/sfx/sdl-1.2/inc/sfx/port.h | 2 +- src/sfx/sdl-1.2/src/sound.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sfx/sdl-1.2') diff --git a/src/sfx/sdl-1.2/inc/sfx/port.h b/src/sfx/sdl-1.2/inc/sfx/port.h index 2279229..77383ad 100644 --- a/src/sfx/sdl-1.2/inc/sfx/port.h +++ b/src/sfx/sdl-1.2/inc/sfx/port.h @@ -1,7 +1,7 @@ #ifndef SFX_SDL1_2_H #define SFX_SDL1_2_H -#include +#include #include #ifdef __cplusplus diff --git a/src/sfx/sdl-1.2/src/sound.c b/src/sfx/sdl-1.2/src/sound.c index c7ef240..fb58477 100644 --- a/src/sfx/sdl-1.2/src/sound.c +++ b/src/sfx/sdl-1.2/src/sound.c @@ -1,8 +1,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include -- cgit v1.2.3