On Sun, Nov 18, 2012 at 10:18 PM, Ian Lance Taylor <i...@google.com> wrote:
> On Sun, Nov 18, 2012 at 5:14 PM, David Edelsohn <dje....@gmail.com> 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 <stdlib.h>
 #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.  */

Reply via email to