Equivalent to the fix in d15b1f201 applied to the enums template. Spotted by Nathan Williams.
Don't include anything in the templates specific to the file to be built, like #ifdef guards in headers or #include in sources.