diff options
author | Karl Williamson <khw@cpan.org> | 2017-11-18 17:34:25 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:27:24 -0700 |
commit | c1566110007bf2539359b2d43e7865b1de0f4af1 (patch) | |
tree | 6f1d6c3ce1922a155b44cc539e1cd25539f318ac /perl_langinfo.h | |
parent | 6d38b7d9a8ecab8ab61a9169dba88eb248e7d096 (diff) | |
download | perl-c1566110007bf2539359b2d43e7865b1de0f4af1.tar.gz |
Perl_langinfo: Teach about YESSTR and NOSTR
These are items that nl_langinfo() used to be required to return, but
are considered obsolete. Nonetheless, this drop-in replacement for that
function should know about them for backward compatibility.
Diffstat (limited to 'perl_langinfo.h')
-rw-r--r-- | perl_langinfo.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/perl_langinfo.h b/perl_langinfo.h index a93874f8ab..cd6eb07de5 100644 --- a/perl_langinfo.h +++ b/perl_langinfo.h @@ -283,15 +283,25 @@ #else # define PERL_YESEXPR -53 #endif +#ifdef YESSTR +# define PERL_YESSTR YESSTR +#else +# define PERL_YESSTR -54 +#endif #ifdef NOEXPR # define PERL_NOEXPR NOEXPR #else -# define PERL_NOEXPR -54 +# define PERL_NOEXPR -55 +#endif +#ifdef NOSTR +# define PERL_NOSTR NOSTR +#else +# define PERL_NOSTR -56 #endif #ifdef CRNCYSTR # define PERL_CRNCYSTR CRNCYSTR #else -# define PERL_CRNCYSTR -55 +# define PERL_CRNCYSTR -57 #endif #endif |