This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
memcpy undef in editbuf.cc
- To: egcs-patches at egcs dot cygnus dot com
- Subject: memcpy undef in editbuf.cc
- From: mrs at wrs dot com (Mike Stump)
- Date: Sat, 31 Jul 1999 12:05:50 -0700
I get:
editbuf.cpp: In method `buf_char * edit_string::copy_bytes(int *) const':
editbuf.cpp:701: implicit declaration of function `int memcpy(...)'
but with:
Doing diffs in editbuf.cc.~1~:
*** editbuf.cc.~1~ Sat Jul 31 11:58:45 1999
--- editbuf.cc Sat Jul 31 11:59:16 1999
*************** Written by Per Bothner (bothner@cygnus.c
*** 31,36 ****
--- 31,37 ----
#include "editbuf.h"
#include <stddef.h>
#include <stdlib.h>
+ #include <string.h>
/* NOTE: Some of the code here is taken from GNU emacs */
/* Hence this file falls under the GNU License! */
--------------
it compiles. Relying upon builtins for language correectness is
wrong.