I need to confirm my code if I'm using ANSI C (C89/C90) and I notice this:

Even if I have selected ASNI C (C89/C90) standard in Eclipse CDT.

Question:
It is told that ANSI C does not use __STDC_VERSION__ but why do I see the same value for __STDC_VERSION__ as 199901L for C99 standard in Eclipse CDT?
I'm using GCC compiler for Lubuntu Linux.
I have tested it. Eclipse CDT simply shows the oldest value programmed. It does not have anything in common with the actual __STDC_VALUE__ seen by the compiler.
When you compile as C90 __STDC_VALUE__ is not defined and value shown in the Eclipse is not valid. I believe that it is an Eclipse bug.
Colouring is also wrong.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With