IAR preprocessor error and a nonexistent file
vitkorob opened this issue · comments
Victor commented
There is code in the file MDR32F9Qx_config.h:
#if ((__CC_ARM == 0) || (__ARMCC_VERSION < 5000000))
#include "MDR32F9Qx_board.h"
#endif
I think should remove or somehow modify this code. My reasons below.
- File MDR32F9Qx_board.h didn't exist in repo.
- Macro __CC_ARM never equal 0 in a normal use. Always set to 1 for the ARM compiler or 0 for other. See predefined macros for the ARM compiler and C99 standard specifies.
I'm using IAR and I have an annoying problem with this code. What is your opinion?
Eldar Khayrullin commented
@vitkorob Hello.
I don't usage this lines too.
But someone maybe use this code to define board configs (like USE_MDR1986VE9x)
Eldar Khayrullin commented
@vitkorob I don't sure about correct checking of predefined macros
Eldar Khayrullin commented
@vitkorob This is used in examples in doc repo.