[vorbis-dev] added check/define for int64_t

Jon Shiring jshiring at eTantrum.com
Thu Aug 24 14:29:41 PDT 2000



Sparc Solaris lacks an int64_t data type.  I added a macro to
detect/correct this problem.

Jon Shiring
Btw, in my quick tests, Vorbis successfully decodes ogg files on sparc
solaris.

The following should be added to configure.in after the calls to set
SIZE64

----------------------

dnl this is a test to see if int64_t is defined
dnl this is because AC_CHECK_TYPE breaks on "long long"

AC_MSG_CHECKING(for int64_t)
AC_CACHE_VAL(has_int64_t,
[AC_TRY_RUN([
#include <sys/types.h>
int64_t foo;
int main() {return 0;}
],
has_int64_t=yes,
has_int64_t=no,
has_int64_t=no
)])
AC_MSG_RESULT($has_int64_t)

if test x$has_int64_t = "xno" ; then
AC_DEFINE_UNQUOTED(int64_t, $SIZE64)
fi

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list