Suggested by Bruno Haible.
* lib/immutable.c (ALIGNMENT): Undefine without checking. Mention that
the #undef is for AIX which defines it beforehand in <sys/socket.h>.
+2025-04-12 Collin Funk <collin.funk1@gmail.com>
+
+ immutable: Simplify a macro definition and improve comment.
+ Suggested by Bruno Haible.
+ * lib/immutable.c (ALIGNMENT): Undefine without checking. Mention that
+ the #undef is for AIX which defines it beforehand in <sys/socket.h>.
+
2025-04-12 Bruno Haible <bruno@clisp.org>
vasnprintf tests: Add a test case that showcases a Solaris bug.
# define ALLOC_PAGES alloc_pages
# define FREE_PAGES free_pages
-/* Avoid redefined macro on AIX. */
-# ifdef ALIGNMENT
-# undef ALIGNMENT
-# endif
+/* AIX defines a macro ALIGNMENT in <sys/socket.h>. Undefine it. */
+# undef ALIGNMENT
# define ALIGNMENT sizeof (void *)
# define PAGE_RESERVED_HEADER_SIZE SHARED_LINK_HEADER_SIZE