Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1171abb

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎api/WCharacter.h

Copy file name to clipboardExpand all lines: api/WCharacter.h
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.