[Scummvm-devel] ScummVM 0.12.0: Release status -- 2008-07-13
Marcus Comstedt
marcus at mc.pp.se
Mon Jul 14 12:55:48 CEST 2008
Max Horn <max at quendi.de> writes:
> Anyway, in the very worst case, we can solve any problems with
> PLUGIN_ENABLED_STATIC by replacing the elegant
> #if PLUGIN_ENABLED_STATIC(AGI)
> by the repetitive but definitely portable
> #if defined(ENABLE_AGI) && !((ENABLE_AGI == DYNAMIC_PLUGIN) &&
> defined(DYNAMIC_MODULES))
Actually, the defined() should not be needed; it is allowed to use
an undefined preprocessor symbol as a numeric expression, in which
case it evaluates to 0. So as long as STATIC_PLUGIN and
DYNAMIC_PLUGIN are defined to a non-zero numeric values,
#if ENABLE_AGI && !((ENABLE_AGI == DYNAMIC_PLUGIN) && defined(DYNAMIC_MODULES))
should work just as well. As it appears that the trouble the BeOS
compiler is having is due to defined() being used on a dynamically
computed value, maybe simply redefining PLUGIN_ENABLED_XX along these
lines would solve the problem?
// Marcus
More information about the Scummvm-devel
mailing list