]> 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, 9 Oct 2022 07:30:42 +0000 (09:30 +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 0e9710bcf42b1fa8e3983e1d5f277dda971b75bd..1fdbd4dd1b3a7a587fb3fd671cf210d7358db5ed 100644 (file)
@@ -175,12 +175,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 84a166f61d1e1d219247adf43f5d28edcfb0119e..cd5a7287bcebe4db3ce43fe0db27170e604c9d14 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 48 (gettext-0.21.1)
+# intl.m4 serial 49 (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,
@@ -240,7 +240,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 tsearch __fsetlocking])