Compare commits
2 Commits
master
...
emscripten
Author | SHA1 | Date | |
---|---|---|---|
|
8e18c0da3e | ||
|
0f15d72404 |
@ -5804,7 +5804,7 @@ struct nk_context {
|
||||
#define NK_ALIGN_PTR_BACK(x, mask)\
|
||||
(NK_UINT_TO_PTR((NK_PTR_TO_UINT((nk_byte*)(x)) & ~(mask-1))))
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
|
||||
#if ((defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)) && !defined(EMSCRIPTEN)
|
||||
#define NK_OFFSETOF(st,m) (__builtin_offsetof(st,m))
|
||||
#else
|
||||
#define NK_OFFSETOF(st,m) ((nk_ptr)&(((st*)0)->m))
|
||||
|
@ -5582,7 +5582,7 @@ struct nk_context {
|
||||
#define NK_ALIGN_PTR_BACK(x, mask)\
|
||||
(NK_UINT_TO_PTR((NK_PTR_TO_UINT((nk_byte*)(x)) & ~(mask-1))))
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
|
||||
#if ((defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)) && !defined(EMSCRIPTEN)
|
||||
#define NK_OFFSETOF(st,m) (__builtin_offsetof(st,m))
|
||||
#else
|
||||
#define NK_OFFSETOF(st,m) ((nk_ptr)&(((st*)0)->m))
|
||||
|
Loading…
Reference in New Issue
Block a user