diff mbox

VEC re-write [patch 01/25]

Message ID CAGWvnymSvCQoh0VgwKtZhhDMFnDMp+GgDRZ83Au_o8OcGNPY7g@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Nov. 19, 2012, 2:46 p.m. UTC
On Sun, Nov 18, 2012 at 10:18 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Sun, Nov 18, 2012 at 5:14 PM, David Edelsohn <dje.gcc@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.
diff mbox

Patch

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.  */