changeset 5288:553713ba9dac

Ensure memcpy is declared.
author Bruno Haible <bruno@clisp.org>
date Fri, 01 Oct 2004 10:12:23 +0000
parents b8be0c532deb
children dbb03bb624ad
files lib/ChangeLog lib/snprintf.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-01  Bruno Haible  <bruno@clisp.org>
+
+	* snprintf.c: Include <string.h>.
+
 2004-09-30  Simon Josefsson  <jas@extundo.com>
 
 	* snprintf.h, snprintf.c: New files.
--- a/lib/snprintf.c
+++ b/lib/snprintf.c
@@ -23,11 +23,14 @@
 /* Get specification.  */
 #include "snprintf.h"
 
+/* Get memcpy.  */
+#include <string.h>
+
 /* Get vasnprintf.  */
 #include "vasnprintf.h"
 
 /* Get MIN. */
-#include <minmax.h>
+#include "minmax.h"
 
 /* Print formatted output to string STR.  Similar to sprintf, but
    additional length SIZE limit how much is written into STR.  Returns