mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-23 08:05:19 +02:00
Fix ALCdevice typedef for openal >=1.20.1
This commit is contained in:
parent
3a6e4aeff4
commit
a17258fbf0
2 changed files with 10 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
struct RGSSThreadData;
|
||||
typedef struct ALCdevice_struct ALCdevice;
|
||||
typedef struct ALCDEVICE_STRUCT ALCdevice;
|
||||
struct SDL_Window;
|
||||
union SDL_Event;
|
||||
|
||||
|
|
|
@ -29,6 +29,15 @@ foreach l : explicit_libs.split(';')
|
|||
endif
|
||||
endforeach
|
||||
|
||||
alcdev_struct = 'ALCdevice_struct'
|
||||
if openal.type_name() == 'pkgconfig'
|
||||
if openal.version().version_compare('>=1.20.1')
|
||||
alcdev_struct = 'ALCdevice'
|
||||
endif
|
||||
endif
|
||||
|
||||
global_args += '-DALCDEVICE_STRUCT=' + alcdev_struct
|
||||
|
||||
global_include_dirs += include_directories('.')
|
||||
global_dependencies += [sigcxx, openal, opengl, zlib, pixman, physfs, vorbisfile, sdl2, sdl2_ttf, sdl2_image, sdl_sound]
|
||||
if host_system == 'darwin'
|
||||
|
|
Loading…
Add table
Reference in a new issue