[ox/std] Change stddef to use cstddef if using stdlib

(synced from ae484e22c7)
This commit is contained in:
2018-04-30 21:08:00 -05:00
parent ec4cabc30b
commit e23d4a5ba3
+3 -1
View File
@@ -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