X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fctype.h;h=32bcef4dabcce1b37d3ed009937abf5b48a074f9;hb=25e6fee27f4a293728dd15b659170e7b9c7db9bc;hp=cd2e016987bd4fb8c13c678e3cd7a5f32d09e290;hpb=2ca55a93f2a11185d72dcb69006fd2c30b5c3144;p=musl diff --git a/include/ctype.h b/include/ctype.h index cd2e0169..32bcef4d 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -64,6 +64,9 @@ int isascii(int); int toascii(int); #define _tolower(a) ((a)|0x20) #define _toupper(a) ((a)&0x5f) +#ifndef __cplusplus +#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128) +#endif #endif