* tests/test-aligned_alloc.c (aligned_alloc): Don't redefine if
aligned_alloc does not exist.
+2024-11-06 Bruno Haible <bruno@clisp.org>
+
+ aligned_alloc tests: Fix compilation error on mingw (regr. 2024-11-04).
+ * tests/test-aligned_alloc.c (aligned_alloc): Don't redefine if
+ aligned_alloc does not exist.
+
2024-11-06 Bruno Haible <bruno@clisp.org>
reallocarray: Fix compilation error in C++ mode (regr. 2024-11-04).
#include "macros.h"
+#if HAVE_ALIGNED_ALLOC
void *(*volatile my_aligned_alloc) (size_t, size_t) = aligned_alloc;
-#undef aligned_alloc
-#define aligned_alloc my_aligned_alloc
+# undef aligned_alloc
+# define aligned_alloc my_aligned_alloc
+#endif
#define ROUNDUP(x,y) (((x) + (y) - 1) & - (y))