diff --git a/scripts/msg.h.template b/scripts/msg.h.template index 0b5a69e..d65f17c 100644 --- a/scripts/msg.h.template +++ b/scripts/msg.h.template @@ -112,6 +112,15 @@ for constant in spec.constants: constants_non_integer.append(constant) }@ +@[if len(spec.constants) > 0]@ +// reducing the odds to have name collisions with Windows.h +@[for constant in spec.constants]@ +#if defined(_WIN32) && defined(@(constant.name)) + #undef @(constant.name) +#endif +@[end for]@ + +@[end if]@ @# Integer constants @[if len(constants_integer) > 0]@ enum {