Message ID | 1424776479-13958-26-git-send-email-clg@fr.ibm.com |
---|---|
State | Accepted |
Headers | show |
diff --git a/libc/include/ctype.h b/libc/include/ctype.h index 9051a7563c12..60c98b0593eb 100644 --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -13,12 +13,14 @@ #ifndef _CTYPE_H #define _CTYPE_H -int isdigit(int c); -int isxdigit(int c); -int isprint(int c); -int isspace(int c); +#include <compiler.h> -int tolower(int c); -int toupper(int c); +int __attrconst isdigit(int c); +int __attrconst isxdigit(int c); +int __attrconst isprint(int c); +int __attrconst isspace(int c); + +int __attrconst tolower(int c); +int __attrconst toupper(int c); #endif
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> --- libc/include/ctype.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)