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