Skip to content

Commit

Permalink
Added ALLOCA define in libvorbis for non windows
Browse files Browse the repository at this point in the history
  • Loading branch information
marstaik committed Jan 19, 2021
1 parent fbabbc7 commit 5c0c7e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thirdparty/libvorbis/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,20 @@ if get_option('builtin_libvorbis')

_builtin_libvorbis_incdirs = include_directories('.')

c_dep_args = []
if PLATFORM != 'windows'
c_dep_args += '-DHAVE_ALLOCA_H'
endif

lib_builtin_libvorbis = static_library('builtin_libvorbis', _builtin_libvorbis_srcs,
include_directories: _builtin_libvorbis_incdirs,
dependencies: [DEP_LIBOGG],
c_args: c_dep_args,
build_by_default: false
)


DEP_LIBVORBIS = declare_dependency(link_with: lib_builtin_libvorbis, include_directories: _builtin_libvorbis_incdirs)
DEP_LIBVORBIS = declare_dependency(link_with: lib_builtin_libvorbis, include_directories: _builtin_libvorbis_incdirs, compile_args: c_dep_args)

else
DEP_LIBVORBIS = [
Expand Down

0 comments on commit 5c0c7e6

Please sign in to comment.