diff options
Diffstat (limited to 'frontends/gl')
| -rw-r--r-- | frontends/gl/audio.c | 6 | ||||
| -rw-r--r-- | frontends/gl/audio.h | 6 | ||||
| -rw-r--r-- | frontends/gl/meson.build | 3 |
3 files changed, 8 insertions, 7 deletions
diff --git a/frontends/gl/audio.c b/frontends/gl/audio.c index 1321f2e..1e194a2 100644 --- a/frontends/gl/audio.c +++ b/frontends/gl/audio.c @@ -1,12 +1,12 @@ #ifdef _WIN32 -#include <SDL.h> -#include <SDL_mixer.h> #define format_str sprintf_s #else -#include <SDL2/SDL.h> #define format_str snprintf #endif +#include <SDL.h> +#include <SDL_mixer.h> + #include "audio.h" void load_multiple_audio(char* name, char* dir_name, int *count, Mix_Chunk** list) { diff --git a/frontends/gl/audio.h b/frontends/gl/audio.h index 61c1cd1..aef8f9d 100644 --- a/frontends/gl/audio.h +++ b/frontends/gl/audio.h @@ -1,12 +1,12 @@ #pragma once #ifdef _WIN32 -#include <SDL.h> -#include <SDL_mixer.h> #define format_str sprintf_s #else -#include <SDL2/SDL.h> #define format_str snprintf #endif +#include <SDL.h> +#include <SDL_mixer.h> + void load_multiple_audio(char* name, char* dir_name, int *count, Mix_Chunk** list); diff --git a/frontends/gl/meson.build b/frontends/gl/meson.build index cf2eeba..55517d1 100644 --- a/frontends/gl/meson.build +++ b/frontends/gl/meson.build @@ -11,7 +11,8 @@ if host_machine.system() == 'windows' else deps += compiler.find_library('m') deps += compiler.find_library('dl') - deps += dependency('SDl2') + deps += dependency('SDL2') + deps += dependency('SDL2_mixer') endif executable('cetris', src, |