The energia framework generates define which identifies the selected board.
e.g.
-DENERGIA_MSP-EXP430F5529LP
this is an invalid define as defines does not allow the '-' character.
the compiler also reports an warning which i assume corresponds to that.
:0:12: warning: missing whitespace after the macro name [enabled by default]
This might happen for other boards as well - so a replace of '-' with '_' might be a good option when generating the defines.
The energia framework generates define which identifies the selected board. e.g. -DENERGIA_MSP-EXP430F5529LP this is an invalid define as defines does not allow the '-' character. the compiler also reports an warning which i assume corresponds to that.