]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Assume <limits.h> exists.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Aug 2001 15:41:52 +0000 (15:41 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 6 Aug 2001 15:41:52 +0000 (15:41 +0000)
intl/ChangeLog
intl/gettext.h
lib/ChangeLog
lib/fstrcmp.c
lib/system.h
src/ChangeLog
src/msgcomm.c
src/msgexec.c
src/msggrep.c
src/write-po.c

index 63d6269900d403b58afb417dea9780ae28526535..b70893bbfc648ad58428277a8bcea38653c68d49 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-23  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.h: Assume <limits.h> exists.
+
 2001-07-24  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.39 released.
index eb5889074a460c9a6b7724136b9e7d6208830729..101d8ef6d2e89623ca5b54c11115896ebe82ba85 100644 (file)
@@ -18,9 +18,7 @@
 #ifndef _GETTEXT_H
 #define _GETTEXT_H 1
 
-#if HAVE_LIMITS_H || _LIBC
-# include <limits.h>
-#endif
+#include <limits.h>
 
 /* @@ end of prolog @@ */
 
index ff4549c6f6700af3374b961ec815313f2f5ad97d..b4a1479bccda8f481a75c6dcac1d324e4b9f2c36 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-23  Bruno Haible  <haible@clisp.cons.org>
+
+       * system.h: Assume <limits.h> exists.
+       * fstrcmp.c: Likewise.
+
 2001-07-01  Bruno Haible  <haible@clisp.cons.org>
 
        * utf8-ucs4.h: New file, extracted from linebreak.c.
index dd1a1af68978897a7073eb290d6d79cc557a08a5..1a0d74c6642f5eb8e801ff1f2e3a6f2484735bf9 100644 (file)
 
 #include <string.h>
 #include <stdio.h>
-
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#else
-# define INT_MAX ((int)(~(unsigned)0 >> 1))
-#endif
+#include <limits.h>
 
 #include "system.h"
 #include "fstrcmp.h"
index 0971ea57da9685a3c81ae625924a07d4018f3e3e..db756400a5aa6626dd90b99c026b429561e7e9dd 100644 (file)
@@ -94,11 +94,9 @@ char *alloca ();
 # endif
 #endif
 
-/* Before we define the following symbols we get the <limits.h> file if
-   available since otherwise we get redefinitions on some systems.  */
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+/* Before we define the following symbols we get the <limits.h> file
+   since otherwise we get redefinitions on some systems.  */
+#include <limits.h>
 
 #ifndef MAX
 # if __STDC__ && defined __GNUC__ && __GNUC__ >= 2
index 420cdb5fb96c82dae717e90af51df7d817dd8d6a..65992f407cc3031ef24be15e237040c5011a95d2 100644 (file)
@@ -1,3 +1,10 @@
+2001-07-23  Bruno Haible  <haible@clisp.cons.org>
+
+       * msgcomm.c: Assume <limits.h> exists.
+       * msgexec.c: Likewise.
+       * msggrep.c: Likewise.
+       * write-po.c: Likewise.
+
 2001-08-02  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.c (usage): Change bug report address to
index aabbd44bce805ede57901d0f829a2074b015b658..cff0e08780788e0efa6313146e0b625bb3322c4e 100644 (file)
 
 #include <errno.h>
 #include <getopt.h>
+#include <limits.h>
+#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#include <locale.h>
-
 #include "dir-list.h"
 #include "str-list.h"
 #include "error.h"
index 8427a05674ed52797b3ae4779a9ccac095266777..f3cd8ffea2513d920c43105c6ddf30a14db54bbf 100644 (file)
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <getopt.h>
+#include <limits.h>
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 # include <unistd.h>
 #endif
 
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
 #include "dir-list.h"
 #include "error.h"
 #include "progname.h"
index daa9b3df9606bbcdf419c0f188f7c9c0c02e549f..107c73132e74a3755c58c7040a3fb6284c54f07b 100644 (file)
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <getopt.h>
+#include <limits.h>
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 # include <unistd.h>
 #endif
 
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
 #include "dir-list.h"
 #include "error.h"
 #include "progname.h"
index 2d1220c03674359e4c780bfb1b8eea77f9658ff7..babac70a4ea89358776835c549a3292d830c492c 100644 (file)
@@ -22,14 +22,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #endif
 
 #include <errno.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
 #if HAVE_ICONV
 # include <iconv.h>
 #endif