summaryrefslogtreecommitdiff
path: root/include/ogg/os_types.h
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2010-10-26 10:56:31 +0000
committerMonty <xiphmont@xiph.org>2010-10-26 10:56:31 +0000
commitb9f32eda9599c01bdc6ade839bc1ea9222191b3d (patch)
treea3c8af3eef9728931669ba50f2cdacba906523d0 /include/ogg/os_types.h
parentb4e4e66cd3fa721be5805d966297730264a8ec7e (diff)
downloadogg-b9f32eda9599c01bdc6ade839bc1ea9222191b3d.tar.gz
Update/modernize the configure type checking, account for the fact that
int types might come from one of three different includes on a modern system. Try, if possible, to use types that don't rely on any of the includes such that the oldest systems have more of a fighting chance. Addresses Trac #849 git-svn-id: http://svn.xiph.org/trunk/ogg@17566 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include/ogg/os_types.h')
-rw-r--r--include/ogg/os_types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ogg/os_types.h b/include/ogg/os_types.h
index 4d4315d..7dc938c 100644
--- a/include/ogg/os_types.h
+++ b/include/ogg/os_types.h
@@ -68,7 +68,7 @@
#elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
-# include <sys/types.h>
+# include <inttypes.h>
typedef int16_t ogg_int16_t;
typedef u_int16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;
@@ -140,7 +140,6 @@
#else
-# include <sys/types.h>
# include <ogg/config_types.h>
#endif