Fix problems defineing types on ssystems where they already exist as

typedefs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19401 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-05-26 13:45:37 +00:00
parent 91f76b73a5
commit 6dca288a19
6 changed files with 71 additions and 12 deletions

View file

@ -645,6 +645,22 @@ AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h signal.h dnl
sys/signal.h sys/wait.h sys/file.h sys/fcntl.h dnl
sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h)
if test $ac_cv_header_stdint_h = yes; then
INCLUDE_STDINT="#include <stdint.h>"
DEFINE_UINT8_T=""
DEFINE_INT32_T=""
DEFINE_INT64_T=""
else
INCLUDE_STDINT=""
DEFINE_UINT8_T="#define uint8_t gsu8"
DEFINE_INT32_T="#define int32_t gss32"
DEFINE_INT64_T="#define int64_t gss64"
fi
AC_SUBST(INCLUDE_STDINT)
AC_SUBST(DEFINE_UINT8_T)
AC_SUBST(DEFINE_INT32_T)
AC_SUBST(DEFINE_INT64_T)
#--------------------------------------------------------------------
# These used by GSFileHandle.m and distributed objects
#--------------------------------------------------------------------