* tests/test-aligned-malloc.c (ALIGNMENT): Undefine any definition from
system headers.
2025-04-12 Collin Funk <collin.funk1@gmail.com>
+ aligned-malloc tests: Avoid redefining macros on AIX.
+ * tests/test-aligned-malloc.c (ALIGNMENT): Undefine any definition from
+ system headers.
+
immutable: Avoid redefining macros on AIX.
* lib/immutable.c (ALIGNMENT): Undefine any definition from system
headers.
#include <stdint.h>
#include <stdlib.h>
+/* Avoid redefinition on AIX. */
+#ifdef ALIGNMENT
+# undef ALIGNMENT
+#endif
#define ALIGNMENT 4
#define aligned_malloc aligned4_malloc
#define aligned_free aligned4_free