From 4965fa019e8edebdd4c3250d2fbfbba808139cb0 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 25 Mar 2004 03:06:56 +0000 Subject: [PATCH] minor fix ups for types git-svn-id: https://svn.musicpd.org/mpd/trunk@460 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- configure.ac | 2 ++ src/mp4ff/mp4ff_int_types.h | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e2b5f16f7..79b281932 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,8 @@ AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) +AC_CHECK_HEADER(sys/inttypes.h,AC_DEFINE(HAVE_SYS_INTTYPES_H,1,[Define if sys/types.h present]),) + AC_CHECK_LIB(socket,socket,MPD_LIBS="$MPD_LIBS -lsocket",) AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) diff --git a/src/mp4ff/mp4ff_int_types.h b/src/mp4ff/mp4ff_int_types.h index 88651a81c..169086fc4 100644 --- a/src/mp4ff/mp4ff_int_types.h +++ b/src/mp4ff/mp4ff_int_types.h @@ -17,12 +17,14 @@ typedef unsigned __int64 uint64_t; #include "../../config.h" -#ifdef HAVE_STDINT_H +#if defined(HAVE_STDINT_H) #include -#else -#ifdef HAVE_INTTYPES_H +#elif defined(HAVE_INTTYPES_H) #include -#endif +#elif defined(HAVE_SYS_INTTYPES_H) +#include +#elif defined(HAVE_SYS_TYPES_H) +#include #endif #endif