From f42eccd3e7c5a717f668f0b832ace09f161dbfbc Mon Sep 17 00:00:00 2001 From: Andre Pang Date: Tue, 28 Sep 2004 15:38:11 +0000 Subject: Get SCNx64 and SCNxMAX format macros working properly on Mac OS X CVS patchset: 7006 CVS date: 2004/09/28 15:38:11 --- lib/os_types.h | 9 +++++++++ src/input/input_http.c | 6 +----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/os_types.h b/lib/os_types.h index 0a49a743d..2f5f0c99c 100644 --- a/lib/os_types.h +++ b/lib/os_types.h @@ -96,6 +96,15 @@ typedef long int64_t; typedef unsigned long int64_t; +#elif defined(HOST_OS_DARWIN) + + /* Darwin (Mac OS X) needs __STDC_LIBRARY_SUPPORTED__ for SCNx64 and + * SCNxMAX macros */ +# ifndef __STDC_LIBRARY_SUPPORTED__ +# define __STDC_LIBRARY_SUPPORTED__ +# endif /* __STDC_LIBRARY_SUPPORTED__ */ +# include + #else /* diff --git a/src/input/input_http.c b/src/input/input_http.c index 303ef4510..ddbe6a2cf 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -19,7 +19,7 @@ * * input plugin for http network streams * - * $Id: input_http.c,v 1.98 2004/09/20 19:30:04 valtri Exp $ + * $Id: input_http.c,v 1.99 2004/09/28 15:38:11 athp Exp $ */ #ifdef HAVE_CONFIG_H @@ -39,10 +39,6 @@ #include #endif /* WIN32 */ -#ifdef HOST_OS_DARWIN -#define __STDC_LIBRARY_SUPPORTED__ -#endif /* HOST_OS_DARWIN */ - #include #define LOG_MODULE "input_http" -- cgit v1.2.3