You can't create a preprocessor symbol with a period in the name. Only letters, numbers, and underscore are allowed. Thus, you are defining the preprocessor symbol named "Fapi_GlobalInit" with the value ".m_poFlashControlRegisters (FLASH_CONTROL_REGISTER)", which is surely not what you want. Change the code so that it looks something like this:
#if NEW_WAY #define MY_FLASH_CONTROL_REGISTER FLASH_CONTROL_REGISTER #else #define MY_FLASH_CONTROL_REGISTER Fapi_GlobalInit.m_poFlashControlRegisters #endif