summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-01-02 10:54:55 +0000
committerJim Meyering <jim@meyering.net>2001-01-02 10:54:55 +0000
commit2320b98d89e34533dece133622d0bbda3f0c5f8a (patch)
tree4a73f2c669a898bb828c950adf377ead90292be6 /src
parent4f90505509100f64da3d430d8a3a7cb2f52a41a6 (diff)
downloadcoreutils-2320b98d89e34533dece133622d0bbda3f0c5f8a.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/od.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/od.c b/src/od.c
index 842992043..84c10597e 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