From: Jim Meyering Date: Tue, 2 Jan 2001 10:54:55 +0000 (+0000) Subject: (decode_one_format): Guard use of print_long_long with X-Git-Tag: FILEUTILS-4_0_36~106 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2320b98d89e34533dece133622d0bbda3f0c5f8a;p=thirdparty%2Fcoreutils.git (decode_one_format): Guard use of print_long_long with `#if HAVE_UNSIGNED_LONG_LONG'. From Darren Salt. Change all `#ifdef HAVE_UNSIGNED_LONG_LONG' to use `#if' instead. --- diff --git a/src/od.c b/src/od.c index 842992043b..84c10597ef 100644 --- a/src/od.c +++ b/src/od.c @@ -1,5 +1,5 @@ /* od -- dump files in octal and other formats - Copyright (C) 92, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 92, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -225,7 +225,7 @@ static FILE *in_stream; /* If nonzero, at least one of the files we read was standard input. */ static int have_read_stdin; -#ifdef HAVE_UNSIGNED_LONG_LONG +#if HAVE_UNSIGNED_LONG_LONG # define LONGEST_INTEGRAL_TYPE unsigned long long #else # define LONGEST_INTEGRAL_TYPE long int @@ -435,7 +435,7 @@ print_long (off_t n_bytes, const char *block, const char *fmt_string) } } -#ifdef HAVE_UNSIGNED_LONG_LONG +#if HAVE_UNSIGNED_LONG_LONG static void print_long_long (off_t n_bytes, const char *block, const char *fmt_string) { @@ -764,7 +764,9 @@ this system doesn't provide a %lu-byte integral type"), s_orig, size); break; case LONG_LONG: +#if HAVE_UNSIGNED_LONG_LONG print_function = print_long_long; +#endif break; default: @@ -1633,7 +1635,7 @@ main (int argc, char **argv) integral_type_size[sizeof (short int)] = SHORT; integral_type_size[sizeof (int)] = INT; integral_type_size[sizeof (long int)] = LONG; -#ifdef HAVE_UNSIGNED_LONG_LONG +#if HAVE_UNSIGNED_LONG_LONG integral_type_size[sizeof (long long)] = LONG_LONG; #endif