summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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
/*