This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a111537
)
IRIX cc -c99 does -D__c99 but none of the other C99 macros.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 19 Oct 2015 02:28:37 +0000
(22:28 -0400)
committer
Jarkko 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
patch
|
blob
|
blame
|
history
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_C
99)
+
defined(_STDC_C99) || defined(__c
99)
# define HAS_C99 1
#endif