This is the mail archive of the
mailing list for the GCC project.
Re: VEC re-write [patch 01/25]
On Sun, Nov 18, 2012 at 10:18 PM, Ian Lance Taylor <email@example.com> wrote:
> On Sun, Nov 18, 2012 at 5:14 PM, David Edelsohn <firstname.lastname@example.org> wrote:
>> The problem is AIX stdlib.h defines
>> #define vec_free free
>> I am not sure where
>> #undef vec_free
>> should be placed. In vec.h or system.h?
> I think system.h.
Committing as obvious.
* system.h (vec_free): Undef.
--- system.h (revision 193623)
+++ system.h (working copy)
@@ -228,6 +228,9 @@
# include <stdlib.h>
+/* Undef vec_free from AIX stdlib.h header which conflicts with vec.h. */
/* 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. */