+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.
/* 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
#include "backupfile.h"
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#ifndef _POSIX_NAME_MAX
# define _POSIX_NAME_MAX 14
#endif
/* 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. */
/* 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
/* 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
/* 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
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