Code cleanup; make several boards compile & link.
diff --git a/lib_generic/vsprintf.c b/lib_generic/vsprintf.c
index 3fefd61..2740f2e 100644
--- a/lib_generic/vsprintf.c
+++ b/lib_generic/vsprintf.c
@@ -55,7 +55,7 @@
return simple_strtoul(cp,endp,base);
}
-#if CFG_64BIT_STRTOUL
+#ifdef CFG_64BIT_STRTOUL
unsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)
{
unsigned long long result = 0, value;
@@ -112,7 +112,7 @@
__res; \
})
-#if CFG_64BIT_VSPRINTF
+#ifdef CFG_64BIT_VSPRINTF
static char * number(char * str, long long num, int base, int size, int precision ,int type)
#else
static char * number(char * str, long num, int base, int size, int precision ,int type)
@@ -188,7 +188,7 @@
int vsprintf(char *buf, const char *fmt, va_list args)
{
int len;
-#if CFG_64BIT_VSPRINTF
+#ifdef CFG_64BIT_VSPRINTF
unsigned long long num;
#else
unsigned long num;
@@ -337,7 +337,7 @@
--fmt;
continue;
}
-#if CFG_64BIT_VSPRINTF
+#ifdef CFG_64BIT_VSPRINTF
if (qualifier == 'q') /* "quad" for 64 bit variables */
num = va_arg(args, unsigned long long);
else