From dba300a0d019933bd2b25006006db95688fb9ea3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Jan 1998 22:12:03 +0000 Subject: CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX Remove definitions of those symbols. * src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h since it now includes limit.h which defines RE_DUP_MAX. * src/nl.c: Likewise. * src/tac.c: Likewise. --- src/csplit.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/csplit.c') diff --git a/src/csplit.c b/src/csplit.c index b923ed457..691ec38eb 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1,5 +1,5 @@ /* csplit - split a file into sections determined by context lines - Copyright (C) 91, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 91, 95, 96, 1997, 1998 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 @@ -29,24 +29,15 @@ #include #include #include -#ifdef HAVE_LIMITS_H -# include -#endif /* HAVE_LIMITS_H */ -#ifndef UINT_MAX -# define UINT_MAX ((unsigned int) ~(unsigned int) 0) -#endif - -#ifndef INT_MAX -# define INT_MAX ((int) (UINT_MAX >> 1)) -#endif +#include "system.h" #if WITH_REGEX # include #else # include #endif -#include "system.h" + #include "error.h" #include "xstrtoul.h" #include "xalloc.h" -- cgit v1.2.3-54-g00ecf