diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 09:30:20 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 09:30:20 +0200 |
commit | 93abe4f36b22c7f84bd40eb24c9d39a4f6631c2b (patch) | |
tree | 62a934c83838b5cab7594fa61b23efcdaaf8ac45 /include/linux | |
parent | 64042b5672f016a2e878337ed74de6f7aa08aad6 (diff) | |
download | barebox-93abe4f36b22c7f84bd40eb24c9d39a4f6631c2b.tar.gz barebox-93abe4f36b22c7f84bd40eb24c9d39a4f6631c2b.tar.xz |
make printf position independent
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ctype.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ctype.h b/include/linux/ctype.h index afa3639229..728040efd3 100644 --- a/include/linux/ctype.h +++ b/include/linux/ctype.h @@ -1,6 +1,9 @@ #ifndef _LINUX_CTYPE_H #define _LINUX_CTYPE_H +#include <common.h> +#include <reloc.h> + /* * NOTE! This ctype does not handle EOF like the standard C * library is required to. @@ -17,7 +20,7 @@ extern unsigned char _ctype[]; -#define __ismask(x) (_ctype[(int)(unsigned char)(x)]) +#define __ismask(x) (RELOC_VAR(_ctype[(int)(unsigned char)(x)])) #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) |