How to find out which ANSI C standard my gcc works with by default?

后端 未结 4 732
無奈伤痛
無奈伤痛 2020-12-19 06:49

I read here it is C90 with extensions. How can I know for sure?

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 07:30

    You can also check one of the predefined Macros, for example whether your GCC asks for ANSI C (STRICT__ANSI) by default (i.e. without any cli arguments).

提交回复
热议问题