Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/REX/W32/MACRO_GUARD_BEGIN.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pragma push_macro("MAX_PATH")
#pragma push_macro("ERROR")
#undef MAX_PATH
#undef ERROR
2 changes: 2 additions & 0 deletions include/REX/W32/MACRO_GUARD_END.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#pragma pop_macro("ERROR")
#pragma pop_macro("MAX_PATH")
4 changes: 4 additions & 0 deletions src/REX/LOG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include <spdlog/spdlog.h>

#include "REX/W32/MACRO_GUARD_BEGIN.h"

namespace REX::Impl
{
void Log(const std::source_location a_loc, const ELogLevel a_level, const std::string_view a_fmt)
Expand Down Expand Up @@ -172,3 +174,5 @@ namespace REX::Impl
REX::W32::TerminateProcess(REX::W32::GetCurrentProcess(), 1);
}
}

#include "REX/W32/MACRO_GUARD_END.h"
Loading