X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Farray%2Farray.h;h=c2efa3ce707d74678ca51e503e2e6b7644b62774;hb=0473813acdfad62221ec9f2b9b41bc10d1f4586d;hp=229235271bde053e0c28f02760178777dde497fd;hpb=88a111e260ae2fd9bc67f24564311a3f1b0c26b2;p=ccan 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