The chip-specific headers seem to be designed to work in both assembly and C code. What they do is this
#ifndef __STDC__
/* assembly stuff */
#else
/* C stuff */
#endif
However __STDC__ *is* defined when running the preprocessor on assembly files (.S), so the C stuff ends up being defined.
A solution is to do as is already done in the iomacros.h and intrinsics.h:
#ifdef __ASSEMBLER__
/* assembly stuff */
#else
/* C stuff */
#endif
Rosty, could you please take this one for the next msp430mcu bundle? It'd probably be good if you could give me a preview to validate the fix against a test case before finalizing the release.