summaryrefslogtreecommitdiff
path: root/lib/os_types.h
diff options
context:
space:
mode:
authorAndre Pang <athp@users.sourceforge.net>2004-09-28 15:38:11 +0000
committerAndre Pang <athp@users.sourceforge.net>2004-09-28 15:38:11 +0000
commitf42eccd3e7c5a717f668f0b832ace09f161dbfbc (patch)
tree215106f5ab8dd3332edd658ecbda43e280df64d3 /lib/os_types.h
parent1c59446b7a7b45d9014a5f43524af18bdb1c9341 (diff)
downloadxine-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
Diffstat (limited to 'lib/os_types.h')
-rw-r--r--lib/os_types.h9
1 files changed, 9 insertions, 0 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
/*