blob: 13df154dfabe24d1b231e30d6cb4f345df4252fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/src/pl_alloc.h b/src/pl_alloc.h
index 78df08a..29718eb 100644
--- a/src/pl_alloc.h
+++ b/src/pl_alloc.h
@@ -83,6 +83,9 @@ char *pl_strndup0(void *parent, const char *str, size_t size);
// `priv` at the address of `pub` + sizeof(pub), rounded up to the maximum
// alignment requirements.
+#if defined(_MSC_VER)
+typedef double max_align_t;
+#endif
#define PL_ALIGN_MEM(size) PL_ALIGN2(size, alignof(max_align_t))
#define PL_PRIV(pub) \
|