+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.
/* 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
# include <config.h>
#endif
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-
-#include <sys/types.h>
-
+/* Specification. */
#include "xalloc.h"
+#include <string.h>
+
/* Return a newly allocated copy of STRING. */
char *
+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.
-# 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
# Prerequisites of lib/xstrdup.c.
AC_DEFUN([gl_PREREQ_XSTRDUP], [
- AC_REQUIRE([AC_HEADER_STDC])
- AC_CHECK_HEADERS_ONCE(string.h)
+ :
])