Don't include alext.h when using Apple-provided OpenAL

This commit is contained in:
Inori 2019-07-31 10:00:06 -04:00
parent cc983a2333
commit 6af4dcd407
2 changed files with 7 additions and 1 deletions

View file

@ -31,7 +31,9 @@
#include <al.h>
#include <alc.h>
#ifndef USE_MAC_OPENAL
#include <alext.h>
#endif
#include "sharedstate.h"
#include "graphics.h"

View file

@ -15,6 +15,10 @@ main_dependencies = [sigcxx, openal, boost, zlib, pixman, physfs, vorbisfile, sd
if host_system == 'darwin'
main_dependencies += meson.get_compiler('cpp').find_library('iconv')
if openal.type_name() != 'pkgconfig'
add_project_arguments('-DUSE_MAC_OPENAL', language: 'cpp')
endif
endif
if get_option('shared_fluid') == true