From 978fce976379bd6d56a7c0eeed3142db4754e08d Mon Sep 17 00:00:00 2001 From: FernTheDev <15272073+Fernthedev@users.noreply.github.com> Date: Sat, 28 Oct 2023 21:59:24 -0400 Subject: [PATCH] Always use nostd source location --- shared/internal_logger.hpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/shared/internal_logger.hpp b/shared/internal_logger.hpp index 49a7dab..d58f75d 100644 --- a/shared/internal_logger.hpp +++ b/shared/internal_logger.hpp @@ -3,29 +3,15 @@ #include #include "queue/concurrentqueue.h" -#if __has_include() -#include -#define PAPERLOG_SL_T std::source_location -#elif __has_include() -#define PAPERLOG_SL_T std::experimental::source_location -#include -#else #include "source_location.hpp" -#endif - -// NDK R26 is weird -#if !__has_builtin(__builtin_source_location) -#include "source_location.hpp" -#define NOSTD_SOURCE_LOCATION_HPP -#endif namespace Paper { -#ifndef NOSTD_SOURCE_LOCATION_HPP - using sl = PAPERLOG_SL_T; -#else +// #ifndef NOSTD_SOURCE_LOCATION_HPP + // using sl = PAPERLOG_SL_T; +// #else //#warning Using nostd source location using sl = nostd::source_location; -#endif +// #endif enum class LogLevel : uint8_t;