]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Assume <limits.h> exists.
authorBruno Haible <bruno@clisp.org>
Tue, 1 Jul 2003 11:38:44 +0000 (11:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:46 +0000 (12:10 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/addext.c
gettext-tools/lib/backupfile.c
gettext-tools/lib/pathmax.h
gettext-tools/lib/xreadlink.c

index 730b57953dd61080aae3bcbf0e48db3e064e708b..e78b8b48734939ee85b9d646fc65fc10b4801a71 100644 (file)
@@ -1,3 +1,10 @@
+2003-05-28  Paul Eggert  <eggert@twinsun.com>
+
+       * pathmax.h: Include <limits.h> without checking for HAVE_LIMITS_H.
+       * addext.c: Likewise.
+       * backupfile.c: Likewise.
+       * xreadlink.c: Likewise.
+
 2003-06-23  Bruno Haible  <bruno@clisp.org>
 
        Avoid compilation units that are empty after preprocessing.
index ec6c42e24e941d28f65683018ee2e9efce2ca60b..d2c8aa86070bf488d31bed7c02d9b1edcaefe02a 100644 (file)
@@ -1,5 +1,5 @@
 /* addext.c -- add an extension to a file name
-   Copyright (C) 1990, 1997-1999, 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1997-1999, 2001-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -31,9 +31,7 @@
 
 #include "backupfile.h"
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 #ifndef _POSIX_NAME_MAX
 # define _POSIX_NAME_MAX 14
 #endif
index 24e0043a11aeb2fcd534d297f28584e1a179b792..e3f8523dae49343a7a67cc5d96fce05db4ab5a63 100644 (file)
@@ -1,5 +1,5 @@
 /* backupfile.c -- make Emacs style backup file names
-   Copyright (C) 1990-1999, 2000-2002 Free Software Foundation, Inc.
+   Copyright (C) 1990-1999, 2000-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 # define HAVE_DIR 0
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
+
 /* Upper bound on the string length of an integer converted to string.
    302 / 1000 is ceil (log10 (2.0)).  Subtract 1 for the sign bit;
    add 1 for integer division truncation; add 1 more for a minus sign.  */
index de9313b0abbc61e1531d4af9d43ac974969f5c22..bdd756e9c51f4b97e5be165f2be5d4ea06b074c2 100644 (file)
@@ -1,5 +1,5 @@
 /* Define PATH_MAX somehow.  Requires sys/types.h.
-   Copyright (C) 1992, 1999, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1999, 2001, 2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@
 /* 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__)
+# if defined _POSIX_VERSION || !defined __GNUC__
 #  include <limits.h>
 # endif
 
index 0322ca79756b8caf4964c438a93eea56d10da440..e4ef9902b2188c53c2cd4432f53c0bfaaabaa74f 100644 (file)
@@ -1,6 +1,6 @@
 /* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage
 
-   Copyright 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -34,9 +34,7 @@
 extern int errno;
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 #if HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif