changeset 4598:2122c5ca4037

Assume <string.h> exists,
author Bruno Haible <bruno@clisp.org>
date Tue, 19 Aug 2003 11:32:28 +0000
parents 6ce95538427c
children 020741f734aa
files lib/ChangeLog lib/xstrdup.c m4/ChangeLog m4/xalloc.m4
diffstat 4 files changed, 15 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog	Tue Aug 19 07:29:03 2003 +0000
+++ b/lib/ChangeLog	Tue Aug 19 11:32:28 2003 +0000
@@ -1,3 +1,7 @@
+2003-08-19  Bruno Haible  <bruno@clisp.org>
+
+	* xstrdup.c: Assume <string.h> exists.
+
 2003-08-18  Jim Meyering  <jim@meyering.net>
 
 	* setenv.h: Indent nested cpp directive.
--- a/lib/xstrdup.c	Tue Aug 19 07:29:03 2003 +0000
+++ b/lib/xstrdup.c	Tue Aug 19 11:32:28 2003 +0000
@@ -1,5 +1,5 @@
 /* xstrdup.c -- copy a string with out of memory checking
-   Copyright (C) 1990, 1996, 1998, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1996, 1998, 2001, 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
@@ -19,15 +19,10 @@
 # include <config.h>
 #endif
 
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+/* Specification.  */
+#include "xalloc.h"
 
-#include <sys/types.h>
-
-#include "xalloc.h"
+#include <string.h>
 
 /* Return a newly allocated copy of STRING.  */
 
--- a/m4/ChangeLog	Tue Aug 19 07:29:03 2003 +0000
+++ b/m4/ChangeLog	Tue Aug 19 11:32:28 2003 +0000
@@ -1,3 +1,7 @@
+2003-08-19  Bruno Haible  <bruno@clisp.org>
+
+	* xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any more.
+
 2003-08-17  Simon Josefsson  <jas@extundo.com>
 
 	* argp.m4: New file.
--- a/m4/xalloc.m4	Tue Aug 19 07:29:03 2003 +0000
+++ b/m4/xalloc.m4	Tue Aug 19 11:32:28 2003 +0000
@@ -1,5 +1,5 @@
-# xalloc.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# xalloc.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
@@ -21,6 +21,5 @@
 
 # Prerequisites of lib/xstrdup.c.
 AC_DEFUN([gl_PREREQ_XSTRDUP], [
-  AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(string.h)
+  :
 ])