Commit d3982b71 by Jeffrey A Law Committed by Jeff Law

config.in (HAVE_UINTPTR_T): Provide autoconf stub.

        * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
        * configure.in (HAVE_UINTPTR_T): Test for system defining
        uintptr_t and define HAVE_UINTPTR_T appropriately.
        * regex.c (uintptr_t): Do not provide a definition if the
        system provided one.

From-SVN: r47068
parent 7ddfb651
Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com) Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
* config.in (HAVE_UINTPTR_T): Provide autoconf stub.
* configure.in (HAVE_UINTPTR_T): Test for system defining
uintptr_t and define HAVE_UINTPTR_T appropriately.
* regex.c (uintptr_t): Do not provide a definition if the
system provided one.
* regex.c (PREFIX): Provide an alternate definition for * regex.c (PREFIX): Provide an alternate definition for
non-ANSI/ISO compilers. non-ANSI/ISO compilers.
(ARG_PREFIX): Likewise. (ARG_PREFIX): Likewise.
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
/* Define vfork as fork if vfork does not work. */ /* Define vfork as fork if vfork does not work. */
#undef vfork #undef vfork
/* Define if the system defines a uintptr_t type. */
#undef HAVE_UINTPTR_T
/* Define if you have the asprintf function. */ /* Define if you have the asprintf function. */
#undef HAVE_ASPRINTF #undef HAVE_ASPRINTF
......
...@@ -126,6 +126,18 @@ AC_HEADER_TIME ...@@ -126,6 +126,18 @@ AC_HEADER_TIME
libiberty_AC_DECLARE_ERRNO libiberty_AC_DECLARE_ERRNO
AC_MSG_CHECKING(for uintptr_t)
AC_EGREP_HEADER(uintptr_t, sys/types.h,
libiberty_cv_uintptr_t=yes, libiberty_cv_uintptr_t=no)
if test $libiberty_cv_uintptr_t = yes
then
AC_DEFINE(HAVE_UINTPTR_T)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
# This is the list of functions which libiberty will provide if they # This is the list of functions which libiberty will provide if they
# are not available on the host. # are not available on the host.
......
...@@ -301,7 +301,7 @@ init_syntax_once () ...@@ -301,7 +301,7 @@ init_syntax_once ()
# endif /* emacs */ # endif /* emacs */
/* Integer type for pointers. */ /* Integer type for pointers. */
# if !defined _LIBC # if !defined _LIBC && !defined HAVE_UINTPTR_T
typedef unsigned long int uintptr_t; typedef unsigned long int uintptr_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