summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-10-08 11:21:16 -0600
committerKarl Williamson <khw@cpan.org>2014-10-21 09:26:49 -0600
commitcaa94d3551e3f67e2b7157876e52748d055d30a4 (patch)
tree474486610e4895a66072f2737c2817818ac809f1 /handy.h
parent6838b41e3cd58738e5e73705c9cef5bef6e28885 (diff)
downloadperl-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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 352e458d6a..8cf4147afa 100644
--- a/handy.h
+++ b/handy.h
@@ -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))