This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: VEC re-write [patch 01/25]


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]