From patchwork Mon Nov 19 14:46:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: VEC re-write [patch 01/25] From: David Edelsohn X-Patchwork-Id: 200021 Message-Id: To: Ian Lance Taylor Cc: Diego Novillo , GCC Patches Date: Mon, 19 Nov 2012 09:46:11 -0500 On Sun, Nov 18, 2012 at 10:18 PM, Ian Lance Taylor wrote: > On Sun, Nov 18, 2012 at 5:14 PM, David Edelsohn wrote: >> >> The problem is AIX stdlib.h defines >> >> #define vec_free free > > Ouch. > >> I am not sure where >> >> #undef vec_free >> >> should be placed. In vec.h or system.h? > > I think system.h. Committing as obvious. Thanks, David * system.h (vec_free): Undef. Index: system.h =================================================================== --- system.h (revision 193623) +++ system.h (working copy) @@ -228,6 +228,9 @@ # include #endif +/* Undef vec_free from AIX stdlib.h header which conflicts with vec.h. */ +#undef vec_free + /* If we don't have an overriding definition, set SUCCESS_EXIT_CODE and FATAL_EXIT_CODE to EXIT_SUCCESS and EXIT_FAILURE respectively, or 0 and 1 if those macros are not defined. */