diff options
author | majestic <majesticcoding@gmail.com> | 2020-08-09 21:54:00 +0200 |
---|---|---|
committer | majestic <majesticcoding@gmail.com> | 2020-08-10 06:42:12 +0200 |
commit | 70029752f517dfe8c8837f7e6f94e6184c14cbfe (patch) | |
tree | b472c4a75ad4f162933bd6f4abd7106dd7adfdf8 /src/core/common.h | |
parent | CWindModifiers (diff) | |
parent | drunk blur done (diff) | |
download | re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.gz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.bz2 re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.lz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.xz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.zst re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index d22c1715..ba1d24ef 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -89,6 +89,16 @@ typedef uint16_t wchar; #include <rpskin.h> #endif +#ifdef __GNUC__ +#define TYPEALIGN(n) __attribute__ ((aligned (n))) +#else +#ifdef _MSC_VER +#define TYPEALIGN(n) __declspec(align(n)) +#else +#define TYPEALIGN(n) // unknown compiler...ignore +#endif +#endif + #define ALIGNPTR(p) (void*)((((uintptr)(void*)p) + sizeof(void*)-1) & ~(sizeof(void*)-1)) // PDP-10 like byte functions |