summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-12 07:17:01 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-09-12 07:54:41 -0400
commit9267464d98c4b9588c96a4fff7202bbe3b09f9a8 (patch)
tree2c5bc5aedb65844b79ef2dae666ad0e21a2d8c2f /perl.h
parent99bf9e32fc57a4be2b3d9395384dc7bf2dc9d8e7 (diff)
downloadperl-9267464d98c4b9588c96a4fff7202bbe3b09f9a8.tar.gz
Comment tweak for HAS_C99.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 55b33de886..29c739b4dc 100644
--- a/perl.h
+++ b/perl.h
@@ -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