OpenMiInk/third_party/krita-deps-management/ext_fftw3/patch_mingw.patch
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

15 lines
519 B
Diff

diff --git a/kernel/kalloc.c b/kernel/kalloc.c
--- a/kernel/kalloc.c
+++ b/kernel/kalloc.c
@@ -125,6 +125,11 @@ void *X(kernel_malloc)(size_t n)
# undef real_free
# define real_free MPFree
+# elif defined(__MINGW32__) || defined(__MINGW64__)
+ p = (void *) __mingw_aligned_malloc(n, MIN_ALIGNMENT);
+# undef real_free
+# define real_free __mingw_aligned_free
+
# else
/* Add your machine here and send a patch to fftw@fftw.org
or (e.g. for Windows) configure --with-our-malloc */