From 589d6f0f146dc7b7370df47812be13f377f51ec8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 17 Feb 2022 21:26:16 -0600 Subject: [PATCH] [ox/std] Replace some OX_USE_STDLIBs with __has_include (synced from c1fc3d48b27347c2cff22a1fb7d5a4a74571745f) --- src/ox/std/iterator.hpp | 2 +- src/ox/std/stddef.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ox/std/iterator.hpp b/src/ox/std/iterator.hpp index 724a28f1a..3504f9509 100644 --- a/src/ox/std/iterator.hpp +++ b/src/ox/std/iterator.hpp @@ -8,7 +8,7 @@ #pragma once -#ifndef OX_USE_STDLIB +#if !__has_include() #include "stddef.hpp" namespace std { diff --git a/src/ox/std/stddef.hpp b/src/ox/std/stddef.hpp index 49d517f77..3f96954fe 100644 --- a/src/ox/std/stddef.hpp +++ b/src/ox/std/stddef.hpp @@ -10,7 +10,7 @@ #include "types.hpp" -#ifdef OX_USE_STDLIB +#if __has_include() #include #else #define offsetof(type, member) __builtin_offsetof(type, member)