summaryrefslogtreecommitdiff
path: root/chardefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'chardefs.h')
-rw-r--r--chardefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardefs.h b/chardefs.h
index e76c34b..1fa1b08 100644
--- a/chardefs.h
+++ b/chardefs.h
@@ -72,7 +72,7 @@
# define IN_CTYPE_DOMAIN(c) isascii(c)
#endif
-#if !defined (isxdigit) && !defined (HAVE_ISXDIGIT)
+#if !defined (isxdigit) && !defined (HAVE_ISXDIGIT) && !defined (__cplusplus)
# define isxdigit(c) (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
#endif