Fixed #5119 (Preprocessor: Using -D suppresses __cplusplus for C++ files)