bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] modechange patches to assume C89 or better


From: Paul Eggert
Subject: [Bug-gnulib] modechange patches to assume C89 or better
Date: 09 Sep 2003 15:46:59 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this:

2003-09-09  Paul Eggert  <address@hidden>

        * modechange.c: Include <stdlib.h> unconditionally.
        (malloc): Remove decl.
        * modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.

Index: lib/modechange.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/modechange.c,v
retrieving revision 1.25
diff -p -u -r1.25 modechange.c
--- lib/modechange.c    6 Jun 2003 20:16:03 -0000       1.25
+++ lib/modechange.c    9 Sep 2003 22:41:39 -0000
@@ -34,12 +34,7 @@
 #include <sys/stat.h>
 #include "xstrtol.h"
 #include <stddef.h>
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-char *malloc ();
-#endif
+#include <stdlib.h>
 
 #if STAT_MACROS_BROKEN
 # undef S_ISDIR
Index: m4/modechange.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/modechange.m4,v
retrieving revision 1.1
diff -p -u -r1.1 modechange.m4
--- m4/modechange.m4    31 Dec 2002 13:42:07 -0000      1.1
+++ m4/modechange.m4    9 Sep 2003 22:41:39 -0000
@@ -1,5 +1,5 @@
-# modechange.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# modechange.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -8,6 +8,5 @@ dnl the same distribution terms as the r
 
 AC_DEFUN([gl_MODECHANGE],
 [
-  AC_REQUIRE([AC_HEADER_STDC])
   AC_REQUIRE([AC_HEADER_STAT])
 ])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]