[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] hard-locale patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] hard-locale patch to assume C89 or better |
Date: |
09 Sep 2003 12:39:19 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* lib/hard-locale.c: Include hard-locale.h first.
Include <stdlib.h>, <string.h> unconditionally.
* m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
string.h.
Index: lib/hard-locale.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/hard-locale.c,v
retrieving revision 1.7
diff -p -u -r1.7 hard-locale.c
--- lib/hard-locale.c 30 Apr 2002 09:17:50 -0000 1.7
+++ lib/hard-locale.c 9 Sep 2003 19:35:26 -0000
@@ -1,6 +1,6 @@
/* hard-locale.c -- Determine whether a locale is hard.
- Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 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
@@ -20,19 +20,14 @@
# include <config.h>
#endif
+#include "hard-locale.h"
+
#if HAVE_LOCALE_H
# include <locale.h>
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#endif
-
-#include "hard-locale.h"
+#include <stdlib.h>
+#include <string.h>
/* Return nonzero if the current CATEGORY locale is hard, i.e. if you
can't get away with assuming traditional C or POSIX behavior. */
Index: m4/hard-locale.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/hard-locale.m4,v
retrieving revision 1.1
diff -p -u -r1.1 hard-locale.m4
--- m4/hard-locale.m4 31 Dec 2002 13:42:07 -0000 1.1
+++ m4/hard-locale.m4 9 Sep 2003 19:35:26 -0000
@@ -1,5 +1,5 @@
-# hard-locale.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# hard-locale.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
@@ -9,6 +9,6 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_HARD_LOCALE],
[
dnl Prerequisites of lib/hard-locale.c.
- AC_CHECK_HEADERS_ONCE(locale.h stdlib.h string.h)
+ AC_CHECK_HEADERS_ONCE(locale.h)
AC_CHECK_FUNCS_ONCE(setlocale)
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] hard-locale patch to assume C89 or better,
Paul Eggert <=