The compiler defines some symbols, so the header files and source code can easily behave in an MCU dependant manner. These are:
MSP430
__MSP430__
__MSP430_xxx__, where xxx is replaced by the number of the MCU variant (e.g. __MSP430_149__ is defined for the msp430x149).