From: Paul Eggert Date: Sat, 28 May 2005 00:00:06 +0000 (+0000) Subject: Don't worry about debugging on pre-C99-comopatible hosts; X-Git-Tag: CPPI-1_12~717 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=644cca3eadd258068cc634d7a356d56ac664fe25;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/lib/fts.c b/lib/fts.c index 418e75b278..a9abe0f10c 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)