[ox/std] Make mgba logging functions compile on all platforms

This commit is contained in:
Gary Talent 2023-07-11 21:58:22 -05:00
parent 8ba461d77c
commit ddcb53a535

View File

@ -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 <iomanip>
#include <iostream>
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 <iomanip>
#include <iostream>
static const auto OxPrintTrace = std::getenv("OXTRACE") != nullptr;
#endif
#include "strops.hpp"
extern "C" {
void oxTraceInitHook() {