mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 22:13:25 +00:00
Use LJ_ALIGN instead
This commit is contained in:
parent
cddca68e97
commit
a37acfab44
11
src/lj_obj.h
11
src/lj_obj.h
@ -319,17 +319,8 @@ typedef struct GCstr {
|
|||||||
|
|
||||||
/* -- Userdata object ----------------------------------------------------- */
|
/* -- Userdata object ----------------------------------------------------- */
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
|
||||||
#define LUA_STRUCT_ALIGNED(a) __attribute__ ((aligned (a)))
|
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
#define LUA_STRUCT_ALIGNED(a) __declspec(align(a))
|
|
||||||
#else
|
|
||||||
#warning "No struct alignment for GCudata"
|
|
||||||
#define LUA_STRUCT_ALIGNED(a)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Userdata object. Payload follows. */
|
/* Userdata object. Payload follows. */
|
||||||
typedef struct LUA_STRUCT_ALIGNED(LUA_USERDATA_ALIGNMENT) GCudata {
|
typedef struct LJ_ALIGN(LUA_USERDATA_ALIGNMENT) GCudata {
|
||||||
GCHeader;
|
GCHeader;
|
||||||
uint8_t udtype; /* Userdata type. */
|
uint8_t udtype; /* Userdata type. */
|
||||||
uint8_t unused2;
|
uint8_t unused2;
|
||||||
|
Loading…
Reference in New Issue
Block a user