mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 19:45:04 -05:00
#ifndef and #define magic to prevent compiler warnings when doing #if BLA
where BLA is undefined
This commit is contained in:
parent
01cfe670c5
commit
1dc5bf4f73
@ -38,6 +38,15 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#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: */
|
/* The last #include file should be: */
|
||||||
#ifdef MALLOCDEBUG
|
#ifdef MALLOCDEBUG
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
@ -1129,7 +1138,7 @@ int main()
|
|||||||
{
|
{
|
||||||
char buffer[129];
|
char buffer[129];
|
||||||
char *ptr;
|
char *ptr;
|
||||||
#ifdef SIZEOF_LONG_LONG
|
#if SIZEOF_LONG_LONG>0
|
||||||
long long hullo;
|
long long hullo;
|
||||||
dprintf("%3$12s %1$s %2$qd %4$d\n", "daniel", hullo, "stenberg", 65);
|
dprintf("%3$12s %1$s %2$qd %4$d\n", "daniel", hullo, "stenberg", 65);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user