diff --git a/deps/ox/src/ox/std/tracehook.cpp b/deps/ox/src/ox/std/tracehook.cpp index e6bd63ea..6f7a989f 100644 --- a/deps/ox/src/ox/std/tracehook.cpp +++ b/deps/ox/src/ox/std/tracehook.cpp @@ -1,12 +1,20 @@ /* - * Copyright 2015 - 2022 gary@drinkingtea.net + * Copyright 2015 - 2023 gary@drinkingtea.net * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if !defined(OX_USE_STDLIB) +#if defined(OX_USE_STDLIB) + +#include +#include + +static const auto OxPrintTrace = std::getenv("OXTRACE") != nullptr; +#endif + +#include "strops.hpp" #include "math.hpp" #include "stringview.hpp" @@ -49,15 +57,6 @@ void initConsole() { } -#else -#include -#include - -static const auto OxPrintTrace = std::getenv("OXTRACE") != nullptr; -#endif - -#include "strops.hpp" - extern "C" { void oxTraceInitHook() {