summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/caml/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/caml/misc.h b/runtime/caml/misc.h
index 7fea2b1443..8eb09931ab 100644
--- a/runtime/caml/misc.h
+++ b/runtime/caml/misc.h
@@ -101,6 +101,8 @@ CAMLdeprecated_typedef(addr, char *);
/* we need to be able to compute the exact offset of each member. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#define CAMLalign(n) _Alignas(n)
+#elif defined(__cplusplus) && _MSC_VER >= 1900
+#define CAMLalign(n) alignas(n)
#elif defined(SUPPORTS_ALIGNED_ATTRIBUTE)
#define CAMLalign(n) __attribute__((aligned(n)))
#elif _MSC_VER >= 1500