]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <limits.h> without checking for HAVE_LIMITS_H.
authorJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 21:04:15 +0000 (21:04 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 21:04:15 +0000 (21:04 +0000)
Include <stddefs.h> unconditionally.
(NULL): Don't define, since <stddef.h> does that.

lib/rpmatch.c

index 02c2abdb884237bd9e5475f1be79512367340f8c..7759d0ca7e964844604c7396d1497c3fbc03e889 100644 (file)
@@ -1,6 +1,6 @@
 /* Determine whether string value is affirmation or negative response
    according to current locale's data.
-   Copyright (C) 1996, 1998, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1998, 2000, 2002, 2003 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
 # include <config.h>
 #endif
 
+#include <stddef.h>
 #if STDC_HEADERS || _LIBC
-# include <stddef.h>
 # include <stdlib.h>
-#else
-# ifndef NULL
-#  define NULL 0
-# endif
 #endif
 
 #if ENABLE_NLS
 # include <sys/types.h>
-# if HAVE_LIMITS_H
-#  include <limits.h>
-# endif
+# include <limits.h>
 # include <regex.h>
 # include "gettext.h"
 # define _(msgid) gettext (msgid)