Gcc to force use of predefined macros

My problem is the following. I am trying to create a project for mips. And when I download it from the repository, there is no problem creating it, but when I create it, when it is part of a larger project, I get the following error:

error: expected ', or' ... before a numeric constant

I found out that this is a problem because some variable is called mips, while the same variable is defined as a predefined macro in the gcc compiler.

#define mips 1

I checked it with

mipsel-linux-gnu-g ++ -dM -E - / DEV / zero

So my question is, does any authority know if there is some kind of compiler flag or something else that makes this macro use? It is strange that the build problem does not occur when I download the same code from the repository.

, .

!

+4
1

-ansi -std, , , . .

, --ansi __mips__, mips.

+3

All Articles