[ox/std] Change stddef to use cstddef if using stdlib
This commit is contained in:
parent
f64bcce564
commit
ae484e22c7
4
deps/ox/src/ox/std/stddef.hpp
vendored
4
deps/ox/src/ox/std/stddef.hpp
vendored
@ -8,6 +8,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined(offsetof)
|
||||
#if OX_USE_STDLIB
|
||||
#include <cstddef>
|
||||
#else
|
||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user