Follow-up Comment #3, bug #22969 (project wesnoth):

with the removal of support for redifinition of the same macro without
explicit undef this feature is even more important than before: I want my
addon 'pyr no preperation turn' which is a [modification] which are in 1.13
also suported in sp to be loaded if its eigher multiplayer or if its using
wesnoth version 1.13. previously my code was like this:

#ifdef MULTIPLAYER
#define LOAD_PYR_NPT
#enddef
#endif

## Wesnoth 1.13 supports sp modifications
#ifver WESNOTH_VERSION >= 1.13.0
#define LOAD_PYR_NPT
#enddef
#endif

#ifdef LOAD_PYR_NPT
... my wml code
#endif


which now gives an error 'warning preprocessor: Redefining macro' in case that
both conditions are met. Sure i know i could fix this warning by adding
another ifndef LOAD_PYR_NPT but that would make this wokraround even uglier
than it already is.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22969>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to