X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=alignof%2Falignof.h;fp=alignof%2Falignof.h;h=0000000000000000000000000000000000000000;hb=650c775ff00cccd03fc84e7789a03c51d9839004;hp=d146e4cdda43750c4cfb53e7f2c470fdf60ed8d1;hpb=c8acddea39d222312102952e91c32cfe4dd2cea0;p=ccan diff --git a/alignof/alignof.h b/alignof/alignof.h deleted file mode 100644 index d146e4cd..00000000 --- a/alignof/alignof.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef CCAN_ALIGNOF_H -#define CCAN_ALIGNOF_H -#include "config.h" - -/** - * ALIGNOF - get the alignment of a type - * @t: the type to test - * - * This returns a safe alignment for the given type. - */ -#if HAVE_ALIGNOF -/* A GCC extension. */ -#define ALIGNOF(t) __alignof__(t) -#else -/* Alignment by measuring structure padding. */ -#define ALIGNOF(t) ((char *)(&((struct { char c; t _h; } *)0)->_h) - (char *)0) -#endif - -#endif /* CCAN_ALIGNOF_H */