Adding zero in c preprocessor statement

后端 未结 1 1267
野性不改
野性不改 2020-12-20 17:58

While looking through some c header files (specifically stdarg.h), I noticed a very peculiar line:

#if !defined(__STRICT_ANSI__) || __STDC_VERSI         


        
相关标签:
1条回答
  • 2020-12-20 18:29

    That avoids a preprocessor syntax error if __STDC_VERSION__ is defined as an empty token (e.g. with #define __STDC_VERSION__).

    (Thanks to Jens Gustedt for pointing out that the first version of my answer was wrong.)

    0 讨论(0)
提交回复
热议问题