[ox/std] Replace some OX_USE_STDLIBs with __has_include

This commit is contained in:
Gary Talent 2022-02-17 21:26:16 -06:00
parent 3f446a64c5
commit c1fc3d48b2
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#pragma once
#ifndef OX_USE_STDLIB
#if !__has_include(<iterator>)
#include "stddef.hpp"
namespace std {

View File

@ -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)