diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-09-28 15:38:11 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-09-28 15:38:11 +0000 |
commit | f42eccd3e7c5a717f668f0b832ace09f161dbfbc (patch) | |
tree | 215106f5ab8dd3332edd658ecbda43e280df64d3 | |
parent | 1c59446b7a7b45d9014a5f43524af18bdb1c9341 (diff) | |
download | xine-lib-f42eccd3e7c5a717f668f0b832ace09f161dbfbc.tar.gz xine-lib-f42eccd3e7c5a717f668f0b832ace09f161dbfbc.tar.bz2 |
Get SCNx64 and SCNxMAX format macros working properly on Mac OS X
CVS patchset: 7006
CVS date: 2004/09/28 15:38:11
-rw-r--r-- | lib/os_types.h | 9 | ||||
-rw-r--r-- | 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 <inttypes.h> + #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 <errno.h> #endif /* WIN32 */ -#ifdef HOST_OS_DARWIN -#define __STDC_LIBRARY_SUPPORTED__ -#endif /* HOST_OS_DARWIN */ - #include <sys/time.h> #define LOG_MODULE "input_http" |