2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +03:00

Fix IsWhiteSpace (#434)

This commit is contained in:
In-line 2017-07-25 14:45:03 +04:00 committed by Dmitry Novikov
parent b4ef456411
commit 1cea370869

View File

@ -144,7 +144,11 @@ int IsEndOfText(char *pText)
int IsWhiteSpace(char space) int IsWhiteSpace(char space)
{ {
#ifdef REHLDS_FIXES
return isspace(space);
#else
return space == ' ' || space == '\t' || space == '\r' || space == '\n'; return space == ' ' || space == '\t' || space == '\r' || space == '\n';
#endif
} }
NOXREF const char *SkipSpace(const char *pText) NOXREF const char *SkipSpace(const char *pText)