diff --git a/lib/mprintf.c b/lib/mprintf.c index 6ca74f3fb079249d0db1fe65d0403479f9b4bc93..ffe6451088cd67ed2d012d6a8b60626bdbdc2b20 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -38,6 +38,15 @@ #include #include +#ifndef SIZEOF_LONG_LONG +/* prevents warnings on picky compilers */ +#define SIZEOF_LONG_LONG 0 +#endif +#ifndef SIZEOF_LONG_DOUBLE +#define SIZEOF_LONG_DOUBLE 0 +#endif + + /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" @@ -1129,7 +1138,7 @@ int main() { char buffer[129]; char *ptr; -#ifdef SIZEOF_LONG_LONG +#if SIZEOF_LONG_LONG>0 long long hullo; dprintf("%3$12s %1$s %2$qd %4$d\n", "daniel", hullo, "stenberg", 65); #endif