r151 - trunk/code/tools/lcc/cpp

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Oct 9 09:06:33 EDT 2005


Author: ludwig
Date: 2005-10-09 09:06:33 -0400 (Sun, 09 Oct 2005)
New Revision: 151

Modified:
   trunk/code/tools/lcc/cpp/unix.c
Log:
ugly: undefine memmove to avoid build failure with gcc fortify
extensions enabled


Modified: trunk/code/tools/lcc/cpp/unix.c
===================================================================
--- trunk/code/tools/lcc/cpp/unix.c	2005-10-09 13:05:44 UTC (rev 150)
+++ trunk/code/tools/lcc/cpp/unix.c	2005-10-09 13:06:33 UTC (rev 151)
@@ -92,6 +92,10 @@
 
 /* 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)
 {




More information about the quake3-commits mailing list