From b169859ce933c116b1ba969e4bffc323f0113ad7 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 29 Sep 2023 00:35:38 +0300 Subject: [PATCH] Removed unneeded ifdef around msvc sink --- include/spdlog/sinks/msvc_sink.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/spdlog/sinks/msvc_sink.h b/include/spdlog/sinks/msvc_sink.h index 6a7000fa..62b59945 100644 --- a/include/spdlog/sinks/msvc_sink.h +++ b/include/spdlog/sinks/msvc_sink.h @@ -3,12 +3,11 @@ #pragma once -#if defined(_WIN32) - #include - #include +#include +#include - #include "../details/null_mutex.h" - #include "base_sink.h" +#include "../details/null_mutex.h" +#include "base_sink.h" // Avoid including windows.h (https://stackoverflow.com/a/30741042) extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char *lpOutputString); @@ -51,4 +50,3 @@ using windebug_sink_st = msvc_sink_st; } // namespace sinks } // namespace spdlog -#endif