From 644cca3eadd258068cc634d7a356d56ac664fe25 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 28 May 2005 00:00:06 +0000 Subject: 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. --- lib/fts.c | 21 +++------------------ 1 file 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 #include #include -#if HAVE_INTTYPES_H -# include -#endif -#if HAVE_STDINT_H -# include -#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 @@ -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 +# include # include +bool fts_debug = false; # define Dprintf(x) do { if (fts_debug) printf x; } while (0) #else # define Dprintf(x) -- cgit v1.2.3-70-g09d2