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 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') 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 /* -- cgit v1.2.3