8000 isAscii: avoid dependency on _GNU_SOURCE · leonzhouwei/ArduinoCore-API@1171abb · GitHub
[go: up one dir, main page]

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

Lines changed: 1 addition & 1 deletion
< 4A54 td data-grid-cell-id="diff-863b111ee3f34b6930a5e0e544892b1379b378595d3c3ca1d8ee598678a27540-66-66-2" data-line-anchor="diff-863b111ee3f34b6930a5e0e544892b1379b378595d3c3ca1d8ee598678a27540R66" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionLine-bgColor, var(--diffBlob-addition-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">+
return ((c & ~0x7f) != 0 ? false : true );
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
6767
}
6868

6969

0 commit comments

Comments
 (0)
0