Commit d9089e37 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

configure: add USIZE64 template

parent 0acd32d7
...@@ -95,6 +95,7 @@ AC_CHECK_SIZEOF(int32_t) ...@@ -95,6 +95,7 @@ AC_CHECK_SIZEOF(int32_t)
AC_CHECK_SIZEOF(uint32_t) AC_CHECK_SIZEOF(uint32_t)
AC_CHECK_SIZEOF(u_int32_t) AC_CHECK_SIZEOF(u_int32_t)
AC_CHECK_SIZEOF(int64_t) AC_CHECK_SIZEOF(int64_t)
AC_CHECK_SIZEOF(uint64_t)
AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long)
...@@ -135,6 +136,13 @@ case 8 in ...@@ -135,6 +136,13 @@ case 8 in
$ac_cv_sizeof_long_long) SIZE64="long long";; $ac_cv_sizeof_long_long) SIZE64="long long";;
esac esac
case 8 in
$ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
$ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
$ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
$ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
esac
if test -z "$SIZE16"; then if test -z "$SIZE16"; then
AC_MSG_ERROR(No 16 bit type found on this platform!) AC_MSG_ERROR(No 16 bit type found on this platform!)
fi fi
...@@ -150,6 +158,9 @@ fi ...@@ -150,6 +158,9 @@ fi
if test -z "$SIZE64"; then if test -z "$SIZE64"; then
AC_MSG_WARN(No 64 bit type found on this platform!) AC_MSG_WARN(No 64 bit type found on this platform!)
fi fi
if test -z "$USIZE64"; then
AC_MSG_WARN(No unsigned 64 bit type found on this platform!)
fi
AC_ARG_ENABLE([crc], AC_ARG_ENABLE([crc],
[AS_HELP_STRING([--disable-crc], [AS_HELP_STRING([--disable-crc],
...@@ -176,6 +187,7 @@ AC_SUBST(USIZE16) ...@@ -176,6 +187,7 @@ AC_SUBST(USIZE16)
AC_SUBST(SIZE32) AC_SUBST(SIZE32)
AC_SUBST(USIZE32) AC_SUBST(USIZE32)
AC_SUBST(SIZE64) AC_SUBST(SIZE64)
AC_SUBST(USIZE64)
AC_SUBST(OPT) AC_SUBST(OPT)
AC_SUBST(LIBS) AC_SUBST(LIBS)
AC_SUBST(DEBUG) AC_SUBST(DEBUG)
......
...@@ -21,5 +21,6 @@ typedef @USIZE16@ ogg_uint16_t; ...@@ -21,5 +21,6 @@ typedef @USIZE16@ ogg_uint16_t;
typedef @SIZE32@ ogg_int32_t; typedef @SIZE32@ ogg_int32_t;
typedef @USIZE32@ ogg_uint32_t; typedef @USIZE32@ ogg_uint32_t;
typedef @SIZE64@ ogg_int64_t; typedef @SIZE64@ ogg_int64_t;
typedef @USIZE64@ ogg_uint64_t;
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment