]> git.ozlabs.org Git - ccan/blobdiff - ccan/array/array.h
gitify the tree, especially the web makefile.
[ccan] / ccan / array / array.h
index 229235271bde053e0c28f02760178777dde497fd..c2efa3ce707d74678ca51e503e2e6b7644b62774 100644 (file)
 #include <ccan/talloc/talloc.h>
 #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