[ox/std] Replace some OX_USE_STDLIBs with __has_include
This commit is contained in:
2
deps/ox/src/ox/std/iterator.hpp
vendored
2
deps/ox/src/ox/std/iterator.hpp
vendored
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef OX_USE_STDLIB
|
#if !__has_include(<iterator>)
|
||||||
#include "stddef.hpp"
|
#include "stddef.hpp"
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
2
deps/ox/src/ox/std/stddef.hpp
vendored
2
deps/ox/src/ox/std/stddef.hpp
vendored
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "types.hpp"
|
#include "types.hpp"
|
||||||
|
|
||||||
#ifdef OX_USE_STDLIB
|
#if __has_include(<cstddef>)
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#else
|
#else
|
||||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||||
|
Reference in New Issue
Block a user