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

Sign up
Appearance settings

Commit 1171abb

Browse files
committed
isAscii: avoid dependency on _GNU_SOURCE
Fixes #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‎

Lines 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)

AltStyle によって変換されたページ (->オリジナル) /