diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-25 21:36:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-25 21:36:02 +0200 |
commit | 48d085a569be694e7cf6aab901e9c67de0aef28c (patch) | |
tree | 0b16faabca164f461607a91c0ae322c614350cf9 | |
parent | a639e4492f2a1f0fce1d95a4c46b598fbab9044c (diff) |
wine-gcc hacks -- fixes #6984
-rw-r--r-- | libs/fluidsynth/wscript | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/fluidsynth/wscript b/libs/fluidsynth/wscript index a36c8da7bf..849c31f301 100644 --- a/libs/fluidsynth/wscript +++ b/libs/fluidsynth/wscript @@ -35,7 +35,7 @@ def build(bld): bld (export_includes = ['fluidsynth'], name = 'libfluidsynth_includes' ) - bld.stlib (source = [ + obj = bld.stlib (source = [ 'src/fluid_midi.c', 'src/fluid_adsr_env.c', 'src/fluid_chorus.c', @@ -69,5 +69,13 @@ def build(bld): defines = [ 'HAVE_CONFIG_H', 'DEFAULT_SOUNDFONT=""' ] ) + # wine-gcc hacks: + # defining __MINGW32__ for wine-gcc is a workaround for fluidsynth's include + # strategy (which is made for mingw or windows) without it + # winsock2.h will complain about undeclared "u_short" + # we also need to explicitly define _WIN32 + if bld.is_defined('WINDOWS_VST_SUPPORT') and not bld.env['build_target'] == 'mingw': + obj.defines += [ '_WIN32', '__MINGW32__' ] + def shutdown(): autowaf.shutdown() |