diff options
author | Karl Williamson <khw@cpan.org> | 2014-10-08 11:21:16 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-10-21 09:26:49 -0600 |
commit | caa94d3551e3f67e2b7157876e52748d055d30a4 (patch) | |
tree | 474486610e4895a66072f2737c2817818ac809f1 /handy.h | |
parent | 6838b41e3cd58738e5e73705c9cef5bef6e28885 (diff) | |
download | perl-caa94d3551e3f67e2b7157876e52748d055d30a4.tar.gz |
handy.h: Add missing macro
This section of code is normally not compiled, but when circumstances
call for it to be compiled, it may be missing the macro defined in this
commit, which is trivial on ASCII platforms, so just define it if
missing
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1137,7 +1137,12 @@ EXTCONST U32 PL_charclass[]; || ((c) <= 'F' && (c) >= 'A')) /* The _L1 macros may be unnecessary for the utilities; I (khw) added them - * during debugging, and it seems best to keep them. */ + * during debugging, and it seems best to keep them. We may be called + * without NATIVE_TO_LATIN1 being defined. On ASCII platforms, it doesn't + * do anything anyway, so make it not a problem */ +# if ! defined(EBCDIC) && ! defined(NATIVE_TO_LATIN1) +# define NATIVE_TO_LATIN1(ch) (ch) +# endif # define isPSXSPC_A(c) isSPACE_A(c) /* XXX Assumes SPACE matches '\v' */ # define isALPHA_L1(c) (isUPPER_L1(c) || isLOWER_L1(c)) # define isALPHANUMERIC_L1(c) (isALPHA_L1(c) || isDIGIT_A(c)) |