summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2011-10-06 10:10:31 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2011-10-06 10:10:31 +0200
commit387dbbd39a594f4d003a92c160e51eb500a20265 (patch)
tree0febb5142191b085924609c9db86cf1dd6cd4e67 /handy.h
parenta175666958f7044955dba72ff4d922cc7d201485 (diff)
downloadperl-387dbbd39a594f4d003a92c160e51eb500a20265.tar.gz
_A is predefined in some precompiler environments
On HP-UX 10.20 in the HP C-ANSI-C environment CAT2(macro, _A) expands to macro01 as _A obviously expands to 01. This fix "breaks" the token
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 7a87d78fe1..fc37b2fcbf 100644
--- a/handy.h
+++ b/handy.h
@@ -919,7 +919,7 @@ EXTCONST U32 PL_charclass[];
* the function. This relies on the fact that ASCII characters have the same
* representation whether utf8 or not */
#define generic_utf8(macro, function, p) (isASCII(*(p)) \
- ? CAT2(macro, _A)(*(p)) \
+ ? CAT2(CAT2(macro,_)A)(*(p)) \
: (UTF8_IS_DOWNGRADEABLE_START(*(p))) \
? CAT2(macro, _L1) \
(TWO_BYTE_UTF8_TO_UNI(*(p), \