projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b129cd8
)
suppress isascii() macro for C++
author
Érico Rolim
<ericonr@disroot.org>
Tue, 5 Jan 2021 01:48:34 +0000
(22:48 -0300)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 25 Feb 2021 21:35:54 +0000
(16:35 -0500)
analogous to commit
a60457c84a4b59ab564d7f4abb660a70283ba98d
.
include/ctype.h
patch
|
blob
|
history
diff --git
a/include/ctype.h
b/include/ctype.h
index
7936536
..
32bcef4
100644
(file)
--- 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