Skip to content

Commit 1171abb

Browse files
committed
isAscii: avoid dependency on _GNU_SOURCE
Fixes arduino#158 Thanks to @kenny5660 for the one liner
1 parent ffc4b00 commit 1171abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/WCharacter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ inline bool isAlpha(int c)
6363
// that fits into the ASCII character set.
6464
inline bool isAscii(int c)
6565
{
66-
return ( isascii (c) == 0 ? false : true);
66+
return ((c & ~0x7f) != 0 ? false : true );
6767
}
6868

6969

0 commit comments

Comments
 (0)