From 84ef91035f36ca6aed70d17da170d323880c5393 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 31 Aug 2013 01:12:01 +0200 Subject: AUTOTOOLS: add check for type intptr_t We check whether HAVE_INTPTR_T is defined in definition of macro discard_const_p, but autootols macro AC_CHECK_TYPE did not generate it. --- src/external/sizes.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/external') diff --git a/src/external/sizes.m4 b/src/external/sizes.m4 index 53df61de..ccbb69ce 100644 --- a/src/external/sizes.m4 +++ b/src/external/sizes.m4 @@ -37,8 +37,11 @@ AC_CHECK_SIZEOF(off_t) AC_CHECK_SIZEOF(size_t) AC_CHECK_SIZEOF(ssize_t) -AC_CHECK_TYPE(intptr_t, long long) + +AC_CHECK_TYPES([intptr_t], + [], + [AC_DEFINE_UNQUOTED([intptr_t], [long long], + [Define to `long long' + if does not define.])]) AC_CHECK_TYPE(uintptr_t, unsigned long long) AC_CHECK_TYPE(ptrdiff_t, unsigned long long) - - -- cgit