summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-11-26 13:53:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-29 20:55:50 +0100
commit248e5f1cbed581c1bf6288831b6888e2166fb952 (patch)
tree5e4a9f2f384a4e6176f4b06959e0a6e9d93a63fd
parentac4854be5e67b4d19884fb4462982d91ca9bc815 (diff)
downloadbarebox-248e5f1cbed581c1bf6288831b6888e2166fb952.tar.gz
barebox-248e5f1cbed581c1bf6288831b6888e2166fb952.tar.xz
compile in simple_strtoull
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/common.h2
-rw-r--r--lib/vsprintf.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h
index d63ad023ba..68ccbd9b61 100644
--- a/include/common.h
+++ b/include/common.h
@@ -115,9 +115,7 @@ int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp);
/* lib_generic/vsprintf.c */
ulong simple_strtoul(const char *cp,char **endp,unsigned int base);
-#ifdef CFG_64BIT_VSPRINTF
unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
-#endif
long simple_strtol(const char *cp,char **endp,unsigned int base);
/* lib_generic/crc32.c */
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 54e162f063..4165f97485 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -56,7 +56,6 @@ long simple_strtol(const char *cp,char **endp,unsigned int base)
}
EXPORT_SYMBOL(simple_strtol);
-#ifdef CFG_64BIT_STRTOUL
unsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)
{
unsigned long long result = 0, value;
@@ -84,7 +83,6 @@ unsigned long long simple_strtoull (const char *cp, char **endp, unsigned int ba
*endp = (char *) cp;
return result;
}
-#endif /* CFG_64BIT_STRTOUL */
/* we use this so that we can do without the ctype library */
#define is_digit(c) ((c) >= '0' && (c) <= '9')