[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] 'human' module patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] 'human' module patch to assume C89 or better |
Date: |
09 Sep 2003 12:45:26 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
(getenv): Do not declare.
* m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
Index: lib/human.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/human.c,v
retrieving revision 1.21
diff -p -u -r1.21 human.c
--- lib/human.c 3 Sep 2003 19:57:54 -0000 1.21
+++ lib/human.c 9 Sep 2003 19:41:13 -0000
@@ -36,25 +36,9 @@
# include <locale.h>
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#ifndef HAVE_DECL_GETENV
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_GETENV
-char *getenv ();
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#endif
-
-#if HAVE_STRINGS_H
-# include <strings.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "gettext.h"
#define _(msgid) gettext (msgid)
Index: m4/human.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/human.m4,v
retrieving revision 1.3
diff -p -u -r1.3 human.m4
--- m4/human.m4 5 Jun 2003 04:35:13 -0000 1.3
+++ m4/human.m4 9 Sep 2003 19:41:13 -0000
@@ -1,4 +1,4 @@
-# human.m4 serial 3
+# human.m4 serial 4
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
@@ -13,7 +13,6 @@ AC_DEFUN([gl_HUMAN],
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
dnl Prerequisites of lib/human.c.
- AC_CHECK_HEADERS_ONCE(locale.h stdlib.h string.h)
- AC_CHECK_DECLS_ONCE(getenv)
+ AC_CHECK_HEADERS_ONCE(locale.h)
AC_CHECK_FUNCS_ONCE(localeconv)
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] 'human' module patch to assume C89 or better,
Paul Eggert <=