summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdmem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stdmem.c b/src/stdmem.c
index 04ce64fb..f657ddcc 100644
--- a/src/stdmem.c
+++ b/src/stdmem.c
@@ -61,7 +61,9 @@
#define MAGIC_SEC_BYTE 0xcc
#define MAGIC_END_BYTE 0xaa
-#if SIZEOF_UNSIGNED_LONG == 8
+#ifdef ALIGNOF_LONG_DOUBLE
+#define EXTRA_ALIGN (ALIGNOF_LONG_DOUBLE-4)
+#elif SIZEOF_UNSIGNED_LONG == 8
#define EXTRA_ALIGN 4
#else
#define EXTRA_ALIGN 0