aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index 7f2206d0..5ac9d988 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -736,10 +736,17 @@
736 736
737 737
738/* 738/*
739@@ LUAI_MAXALIGN defines fields that, when used in a union, ensure 739@@ LUAI_MAXALIGN defines fields that ensure proper alignment for
740** maximum alignment for the other items in that union. 740** memory areas offered by Lua (e.g., userdata memory).
741** Add fields to it if you need alignment for non-ISO objects.
741*/ 742*/
743#if defined(LLONG_MAX)
744/* use ISO C99 stuff */
745#define LUAI_MAXALIGN long double u; void *s; long long l
746#else
747/* use only C89 stuff */
742#define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l 748#define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l
749#endif
743 750
744/* }================================================================== */ 751/* }================================================================== */
745 752