diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-12 07:17:01 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-12 07:54:41 -0400 |
commit | 9267464d98c4b9588c96a4fff7202bbe3b09f9a8 (patch) | |
tree | 2c5bc5aedb65844b79ef2dae666ad0e21a2d8c2f /perl.h | |
parent | 99bf9e32fc57a4be2b3d9395384dc7bf2dc9d8e7 (diff) | |
download | perl-9267464d98c4b9588c96a4fff7202bbe3b09f9a8.tar.gz |
Comment tweak for HAS_C99.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -28,7 +28,11 @@ # include "config.h" #endif -#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(_STDC_C99) +/* Note that with gcc -std=c89 the __STDC_VERSION__ is *not* defined + * because the __STDC_VERSION__ became a thing only with C90. Therefore, + * with gcc, HAS_C99 will never become true as long as we use -std=c89. */ +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ + defined(_STDC_C99) # define HAS_C99 1 #endif |