mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-03 02:34:17 +00:00
wscript: fix system opus detection, it didn't compile due to nonnull argument
This commit is contained in:
parent
fb87d7c0b3
commit
bd969f3594
2
wscript
2
wscript
@ -471,7 +471,7 @@ int main(int argc, char **argv) { strchrnul(argv[1], 'x'); return 0; }'''
|
|||||||
if conf.check_cfg(package='opus', uselib_store='opus', args='opus >= 1.4 --cflags --libs', mandatory=False):
|
if conf.check_cfg(package='opus', uselib_store='opus', args='opus >= 1.4 --cflags --libs', mandatory=False):
|
||||||
# now try to link with export that only exists with CUSTOM_MODES defined
|
# now try to link with export that only exists with CUSTOM_MODES defined
|
||||||
frag='''#include <opus_custom.h>
|
frag='''#include <opus_custom.h>
|
||||||
int main(void) { return !opus_custom_encoder_init(0, 0, 0); }'''
|
int main(void) { return !opus_custom_encoder_init((OpusCustomEncoder *)1, (const OpusCustomMode *)1, 1); }'''
|
||||||
|
|
||||||
if conf.check_cc(msg='Checking if opus supports custom modes', defines='CUSTOM_MODES=1', use='opus', fragment=frag, mandatory=False):
|
if conf.check_cc(msg='Checking if opus supports custom modes', defines='CUSTOM_MODES=1', use='opus', fragment=frag, mandatory=False):
|
||||||
conf.env.HAVE_SYSTEM_OPUS = True
|
conf.env.HAVE_SYSTEM_OPUS = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user