summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorÉrico Rolim <ericonr@disroot.org>2021-01-04 22:48:34 -0300
committerRich Felker <dalias@aerifal.cx>2021-02-25 16:35:54 -0500
commite48e99c112246fb580596404074445cb25d7858d (patch)
treea165880399a823559245ee3e2ae1c04537c5ecd7 /include
parentb129cd8690da492b25b66061e29e52aae235f1e3 (diff)
downloadmusl-e48e99c112246fb580596404074445cb25d7858d.tar.gz
musl-e48e99c112246fb580596404074445cb25d7858d.tar.bz2
musl-e48e99c112246fb580596404074445cb25d7858d.tar.xz
musl-e48e99c112246fb580596404074445cb25d7858d.zip
suppress isascii() macro for C++
analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
Diffstat (limited to 'include')
-rw-r--r--include/ctype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 7936536f..32bcef4d 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -64,7 +64,9 @@ int isascii(int);
int toascii(int);
#define _tolower(a) ((a)|0x20)
#define _toupper(a) ((a)&0x5f)
+#ifndef __cplusplus
#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128)
+#endif
#endif