Skip to content

Commit

Permalink
ugly: undefine memmove to avoid build failure with gcc fortify
Browse files Browse the repository at this point in the history
extensions enabled
  • Loading branch information
lnussel committed Oct 9, 2005
1 parent f62601a commit 44f5273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/tools/lcc/cpp/unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ setup(int argc, char **argv)

/* memmove is defined here because some vendors don't provide it at
all and others do a terrible job (like calling malloc) */
// -- ouch, that hurts -- ln
#ifdef memmove
#undef memmove
#endif
void *
memmove(void *dp, const void *sp, size_t n)
{
Expand Down

0 comments on commit 44f5273

Please sign in to comment.