X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffsusage.c;h=a305979bab2b8251bf3549ba6326e0c20c3e3098;hb=7b9878d56ceb1a8ed1255ea1e6010638af7252c6;hp=0bb62244755bd8fab46d0b01f8e199dc216e2511;hpb=79c0a43808d9ca85acd04600149fc1a9b75bd1b9;p=gnulib.git diff --git a/lib/fsusage.c b/lib/fsusage.c index 0bb622447..a305979ba 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "fsusage.h" @@ -58,10 +56,6 @@ # include "full-read.h" #endif -#ifndef UINTMAX_MAX -# define UINTMAX_MAX ((uintmax_t) -1) -#endif - /* Many space usage primitives use all 1 bits to denote a value that is not applicable or unknown. Propagate this information by returning a uintmax_t value that is all 1 bits if X is all 1 bits, even if X @@ -71,7 +65,7 @@ && (~ (x) == (sizeof (x) < sizeof (int) \ ? - (1 << (sizeof (x) * CHAR_BIT)) \ : 0))) \ - ? UINTMAX_MAX : (x)) + ? UINTMAX_MAX : (uintmax_t) (x)) /* Extract the top bit of X as an uintmax_t value. */ #define EXTRACT_TOP_BIT(x) ((x) \