This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

memcpy undef in editbuf.cc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]