]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't worry about debugging on pre-C99-comopatible hosts;
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 May 2005 00:00:06 +0000 (00:00 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 May 2005 00:00:06 +0000 (00:00 +0000)
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.

lib/fts.c

index 418e75b2788396069ad7c1bf03f12efdc1da2db3..a9abe0f10c702662cdd7877fa80cb4b3b9612ff5 100644 (file)
--- 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)