From: Jim Meyering Date: Sat, 18 Oct 1997 19:49:50 +0000 (+0000) Subject: (LONG_MAX): Define if not defined. X-Git-Tag: TEXTUTILS-1_22c~232 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fa5a54f68eddc8bd0334651a205f2e85f34b512;p=thirdparty%2Fcoreutils.git (LONG_MAX): Define if not defined. --- diff --git a/src/od.c b/src/od.c index c7d5d4cb05..bf7de17b87 100644 --- a/src/od.c +++ b/src/od.c @@ -55,6 +55,9 @@ typedef double LONG_DOUBLE; #ifndef ULONG_MAX # define ULONG_MAX ((unsigned long) ~(unsigned long) 0) #endif +#ifndef LONG_MAX +# define LONG_MAX ((long int) (ULONG_MAX >> 1)) +#endif #if HAVE_VALUES_H # include