Use __a_aligned in analogy to __a_unused which was introduced since __unused is
already defined on MacOS. This fixes the warning
gcc-compat.h:5:1: warning: "__aligned" redefined
In file included from /usr/include/regex.h:77,
from daemon.c:9:
/usr/include/sys/cdefs.h:202:1: warning: this is the location of the previous definition
on NetBSD and has the additional advantage that it keeps working even if the
NetBSD people decide to redefine __aligned.
#define __noreturn __attribute__ ((noreturn))
#define __malloc __attribute__ ((malloc))
#define __a_unused __attribute__ ((unused))
-#define __aligned(alignment) __attribute__((__aligned__(alignment)))
+#define __a_aligned(alignment) __attribute__((__aligned__(alignment)))
/*
* p is the number of the "format string" parameter, and q is
};
/** cos(2 * pi * x / n) for 0 <= x <= n / 4, followed by its reverse */
-#define COSINE_TAB(n) fftsample_t cos_ ## n[n / 2] __aligned(16)
+#define COSINE_TAB(n) fftsample_t cos_ ## n[n / 2] __a_aligned(16)
COSINE_TAB(16);
COSINE_TAB(32);
#define VLCBITS 9
#define VLCMAX ((22 + VLCBITS - 1) / VLCBITS)
-#define SINE_WINDOW(x) float sine_ ## x[x] __aligned(16)
+#define SINE_WINDOW(x) float sine_ ## x[x] __a_aligned(16)
SINE_WINDOW(128);
SINE_WINDOW(256);