Skip to content

Commit

Permalink
Assume strchr is available
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Sep 7, 2017
1 parent 9d2b98f commit 10c88ea
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions build.vc/cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,6 @@ MA 02111-1307, USA. */
/* Define if you have the `strcasecmp' function. */
#undef HAVE_STRCASECMP

/* Define if you have the `strchr' function. */
#define HAVE_STRCHR 1

/* Define if cpp supports the ANSI # stringizing operator. */
#define HAVE_STRINGIZE 1

Expand Down
3 changes: 0 additions & 3 deletions config.in
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ MA 02110-1301, USA.
/* Define to 1 if the system has the type `std::locale'. */
#undef HAVE_STD__LOCALE

/* Define to 1 if you have the `strchr' function. */
#undef HAVE_STRCHR

/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ GMP_C_DOUBLE_FORMAT
# __gmp_replacement_vsnprintf which is not required on AIX since it has a
# vsnprintf.
#
AC_CHECK_FUNCS(alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv mmap nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times)
AC_CHECK_FUNCS(alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv mmap nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time syssgi strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times)

# mingw returns OK on mprotect , but it's broken
#
Expand Down
5 changes: 0 additions & 5 deletions gmp-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,6 @@ typedef struct {mp_limb_t inv21, inv32, inv53;} gmp_pi2_t;
#endif


#if ! HAVE_STRCHR
#define strchr(s,c) index(s,c)
#endif


/* va_copy is standard in C99, and gcc provides __va_copy when in strict C89
mode. Falling back to a memcpy will give maximum portability, since it
works no matter whether va_list is a pointer, struct or array. */
Expand Down

0 comments on commit 10c88ea

Please sign in to comment.