This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
IRIX cc -c99 does -D__c99 but none of the other C99 macros.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 19 Oct 2015 02:28:37 +0000 (22:28 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 19 Oct 2015 13:02:35 +0000 (09:02 -0400)
Admittedly this change could make C99-ness visible also
on platforms beyond IRIX, but that should be a good thing.

perl.h

diff --git a/perl.h b/perl.h
index 620028d..9b09bff 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -35,7 +35,7 @@
  * NOTE 2: headers lie.  Do not expect that if HAS_C99 gets to be true,
  * all the C99 features are there and are correct. */
 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
-     defined(_STDC_C99)
+    defined(_STDC_C99) || defined(__c99)
 #  define HAS_C99 1
 #endif