Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Won't that only be supported in gnu89 or gnu90 mode?


No, it will be supported using -std=c89 or -std=90, unless you also specify -pedantic.


Yes, I realized after posting that -pedantic is required for strict standards compliance.


The GNU modes just enable additional features which conflict with plain C. Any feature which can coexist with plain C will be enabled in the regular C modes too. For example, __typeof__ is enabled everywhere, because the compiler is allowed to do just about anything it wants with a __ prefix, but plain typeof is only enabled in the GNU modes, since it could cause valid C programs using "typeof" for their own purposes to fail to compile.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: