Assume the standard headers exist.
authorBruno Haible <bruno@clisp.org>
Mon, 31 Jul 2006 16:09:08 +0000 (16:09 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 31 Jul 2006 16:09:08 +0000 (16:09 +0000)
lib/ChangeLog
lib/localcharset.c
m4/ChangeLog
m4/localcharset.m4

index 091ee11..130a1ec 100644 (file)
@@ -1,5 +1,9 @@
 2006-07-29  Bruno Haible  <bruno@clisp.org>
 
+       * localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
+
+2006-07-29  Bruno Haible  <bruno@clisp.org>
+
        * setenv.c: Undo unintended modification done on 2006-02-27.
 
 2006-07-28  Eric Blake  <ebb9@byu.net>
index 08daf73..cd44ca6 100644 (file)
 /* Specification.  */
 #include "localcharset.h"
 
-#if HAVE_STDDEF_H
-# include <stddef.h>
-#endif
-
+#include <stddef.h>
 #include <stdio.h>
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <string.h>
+#include <stdlib.h>
 
 #if defined _WIN32 || defined __WIN32__
 # define WIN32_NATIVE
index 2a79891..1c706da 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-31  Bruno Haible  <bruno@clisp.org>
+
+       * localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
+       <stdlib.h>, <string.h>.
+
 2006-07-30  Bruno Haible  <bruno@clisp.org>
 
        * wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
index 6863d32..c039635 100644 (file)
@@ -1,4 +1,4 @@
-# localcharset.m4 serial 3
+# localcharset.m4 serial 4
 dnl Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,6 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_LOCALCHARSET],
 [
   dnl Prerequisites of lib/localcharset.c.
-  AC_CHECK_HEADERS_ONCE(stddef.h stdlib.h string.h)
   AC_REQUIRE([AM_LANGINFO_CODESET])
   AC_CHECK_DECLS_ONCE(getc_unlocked)
   AC_CHECK_FUNCS_ONCE(setlocale)