From: Ben Pfaff Date: Wed, 1 Nov 2006 03:33:01 +0000 (+0000) Subject: Tue Oct 31 19:29:05 2006 Ben Pfaff X-Git-Tag: v0.6.0~709 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=c88e828f7efd35fdf5175eb089fe9be6520f44d9 Tue Oct 31 19:29:05 2006 Ben Pfaff * configure.ac: Drop tests for strchr, strrchr because now we assume a C89 compliant library. (Gnulib makes this assumption so we might as well too.) --- diff --git a/ChangeLog b/ChangeLog index 2ab9e6bc..add97b22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 31 19:29:05 2006 Ben Pfaff + + * configure.ac: Drop tests for strchr, strrchr because now we + assume a C89 compliant library. (Gnulib makes this assumption so + we might as well too.) + Sun Oct 29 14:08:53 2006 Ben Pfaff * Smake (GNULIB_MODULES): Remove `restrict' from modules, because diff --git a/configure.ac b/configure.ac index 7e518cbf..dddfc564 100644 --- a/configure.ac +++ b/configure.ac @@ -73,7 +73,7 @@ AC_DEFINE(FPREP_IEEE754, 1, AC_C_BIGENDIAN AC_FUNC_VPRINTF -AC_CHECK_FUNCS([strchr strrchr __setfpucw isinf isnan finite getpid feholdexcept]) +AC_CHECK_FUNCS([__setfpucw isinf isnan finite getpid feholdexcept]) AC_PROG_LN_S diff --git a/src/libpspp/ChangeLog b/src/libpspp/ChangeLog index c237dfb7..d3d1553c 100644 --- a/src/libpspp/ChangeLog +++ b/src/libpspp/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 31 19:28:19 2006 Ben Pfaff + + * str.h: [!HAVE_STRCHR] Drop compatibility code, because now we + assume a C89 compliant library. (Gnulib makes this assumption so + we might as well too.) + [!HAVE_STRRCHR] Ditto. + Thu Oct 26 20:19:50 2006 Ben Pfaff * automake.mk: Add the new files. diff --git a/src/libpspp/str.h b/src/libpspp/str.h index fd6e739b..d8698ba4 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -37,13 +37,6 @@ #include "strtok_r.h" #include "vsnprintf.h" #include "xvasprintf.h" - -#ifndef HAVE_STRCHR -#define strchr index -#endif -#ifndef HAVE_STRRCHR -#define strrchr rindex -#endif /* Miscellaneous. */