projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove/rewrite some comments.
[gnulib.git]
/
lib
/
backupfile.c
diff --git
a/lib/backupfile.c
b/lib/backupfile.c
index
e6956ee
..
2888034
100644
(file)
--- a/
lib/backupfile.c
+++ b/
lib/backupfile.c
@@
-19,14
+19,7
@@
Some algorithms adapted from GNU Emacs. */
#ifdef HAVE_CONFIG_H
Some algorithms adapted from GNU Emacs. */
#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
#include <config.h>
-#else
-#include "config.h"
-#endif
#endif
#include <stdio.h>
#endif
#include <stdio.h>
@@
-45,24
+38,24
@@
#include <strings.h>
#endif
#include <strings.h>
#endif
-#if
defined(DIRENT) || defined(_POSIX_VERSION)
+#if
def HAVE_DIRENT_H
#include <dirent.h>
#define NLENGTH(direct) (strlen((direct)->d_name))
#include <dirent.h>
#define NLENGTH(direct) (strlen((direct)->d_name))
-#else /* not
(DIRENT or _POSIX_VERSION)
*/
+#else /* not
HAVE_DIRENT_H
*/
#define dirent direct
#define NLENGTH(direct) ((direct)->d_namlen)
#define dirent direct
#define NLENGTH(direct) ((direct)->d_namlen)
-#ifdef
SYSNDIR
+#ifdef
HAVE_SYS_NDIR_H
#include <sys/ndir.h>
#include <sys/ndir.h>
-#endif /*
SYSNDIR
*/
-#ifdef
SYSDIR
+#endif /*
HAVE_SYS_NDIR_H
*/
+#ifdef
HAVE_SYS_DIR_H
#include <sys/dir.h>
#include <sys/dir.h>
-#endif /*
SYSDIR
*/
-#ifdef
NDIR
+#endif /*
HAVE_SYS_DIR_H
*/
+#ifdef
HAVE_NDIR_H
#include <ndir.h>
#include <ndir.h>
-#endif /*
NDIR
*/
-#endif /*
DIRENT or _POSIX_VERSION
*/
+#endif /*
HAVE_NDIR_H
*/
+#endif /*
HAVE_DIRENT_H
*/
-#ifdef
VOID_CLOSEDIR
+#ifdef
CLOSEDIR_VOID
/* Fake a return value. */
#define CLOSEDIR(d) (closedir (d), 0)
#else
/* Fake a return value. */
#define CLOSEDIR(d) (closedir (d), 0)
#else