aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-08 19:24:07 -0700
committerChris Robinson <[email protected]>2012-09-08 19:24:07 -0700
commit7a37a63b8ecfdb005b8650ea59064d216e1a230c (patch)
tree74a4ca4d046a6ebc2290a2932d64863017fd59ec
parent2b5fdad2c8370159cee9e4318983610e1086cf65 (diff)
Workaround MinGW __declspec(align(x)) bug
-rw-r--r--config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 2254adff..b0729b09 100644
--- a/config.h.in
+++ b/config.h.in
@@ -6,6 +6,9 @@
#define ALSOFT_VERSION "${LIB_VERSION}"
#define ALIGN(x) ${ALIGN_DECL}
+#ifdef __MINGW32__
+#define align(x) aligned(x)
+#endif
/* Define if we have the C11 aligned_alloc function */
#cmakedefine HAVE_ALIGNED_ALLOC