]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Assume <limits.h> exists.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:43:45 +0000 (03:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:43:45 +0000 (03:43 +0200)
* gettext-runtime/intl/dcigettext.c: Include <limits.h> always.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for limits.h.

gettext-runtime/intl/dcigettext.c
gettext-runtime/m4/intl.m4

index 133c93a70df88ad72e9cff30338cbb1f0bc2cec2..e7cb9b962a9a6b8e9ccf4a4a249b41517f857f26 100644 (file)
@@ -165,12 +165,7 @@ static void *mempcpy (void *dest, const void *src, size_t n);
 #define PATH_INCR 32
 
 /* The following is from pathmax.h.  */
-/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
-   PATH_MAX but might cause redefinition warnings when sys/param.h is
-   later included (as on MORE/BSD 4.3).  */
-#if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__)
-# include <limits.h>
-#endif
+#include <limits.h>
 
 #ifndef _POSIX_PATH_MAX
 # define _POSIX_PATH_MAX 255
index b632e16022b7971f145f500a0b388b7939be2bf6..3a47f9b9c07b0b8fdf74727b88bf145f4c09ef35 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 50 (gettext-0.21.1)
+# intl.m4 serial 51 (gettext-0.21.1)
 dnl Copyright (C) 1995-2014, 2016-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,7 +54,7 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
     [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1],
        [Define to 1 if the compiler understands __builtin_expect.])])
 
-  AC_CHECK_HEADERS([inttypes.h limits.h unistd.h sys/param.h])
+  AC_CHECK_HEADERS([inttypes.h unistd.h sys/param.h])
   AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
     stpcpy strcasecmp strdup strtoul uselocale __fsetlocking])