X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Farray%2Farray.h;h=c2efa3ce707d74678ca51e503e2e6b7644b62774;hp=229235271bde053e0c28f02760178777dde497fd;hb=d1cea3ebf96f61b5bbac1e74975700770e06add6;hpb=88a111e260ae2fd9bc67f24564311a3f1b0c26b2 diff --git a/ccan/array/array.h b/ccan/array/array.h index 22923527..c2efa3ce 100644 --- a/ccan/array/array.h +++ b/ccan/array/array.h @@ -38,12 +38,8 @@ #include #endif -#ifndef HAVE_ATTRIBUTE_MAY_ALIAS -#define HAVE_ATTRIBUTE_MAY_ALIAS 1 -#endif - //Use the array_alias macro to indicate that a pointer has changed but strict aliasing rules are too stupid to know it -#if HAVE_ATTRIBUTE_MAY_ALIAS==1 +#if HAVE_ATTRIBUTE_MAY_ALIAS #define array_alias(ptr) /* nothing */ #define array(type) struct {type *item; size_t size; size_t alloc;} __attribute__((__may_alias__)) #else