summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-28 00:00:06 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-28 00:00:06 +0000
commit644cca3eadd258068cc634d7a356d56ac664fe25 (patch)
tree713ef52cc2d0705627a6b7d94f9e54dba225b814
parent42a4ba9143eeb3deb968c3f228e807093c638e15 (diff)
downloadcoreutils-644cca3eadd258068cc634d7a356d56ac664fe25.tar.xz
Don't worry about debugging on pre-C99-comopatible hosts;
the configuration hassle isn't worth it. Include inttypes.h and stdint.h unconditionally if FTS_DEBUG. (LONGEST_MODIFIER, PRIuMAX): Remove.
-rw-r--r--lib/fts.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/fts.c b/lib/fts.c
index 418e75b27..a9abe0f10 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -70,23 +70,6 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#if HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#if ULONG_MAX < ULLONG_MAX
-# define LONGEST_MODIFIER "ll"
-#else
-# define LONGEST_MODIFIER "l"
-#endif
-#if PRI_MACROS_BROKEN
-# undef PRIuMAX
-#endif
-#ifndef PRIuMAX
-# define PRIuMAX LONGEST_MODIFIER "u"
-#endif
#if defined _LIBC
# include <dirent.h>
@@ -201,8 +184,10 @@ static int fd_safer (int fd) { return fd; }
#define BREAD 3 /* fts_read */
#if FTS_DEBUG
-bool fts_debug = false;
+# include <inttypes.h>
+# include <stdint.h>
# include <stdio.h>
+bool fts_debug = false;
# define Dprintf(x) do { if (fts_debug) printf x; } while (0)
#else
# define Dprintf(x)