You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(WIN32)
set(SPDLOG_USE_STD_FORMAT ON CACHE BOOL ON FORCE)
else()
set(SPDLOG_USE_STD_FORMAT OFF CACHE BOOL OFF FORCE)
endif()
to
set(SPDLOG_USE_STD_FORMAT ON CACHE BOOL ON FORCE)
pragma/core/shared/include/pragma/entities/baseentity.h pragma/core/server/include/pragma/entities/s_baseentity.h pragma/core/client/include/pragma/entities/c_baseentity.h
Remove #ifdef _WIN32 around the std::formatter code blocks and #include <format>.
pragma/core/shared/src/logging.cpp
Remove #ifdef _WIN32 around the pragma::logging::client_type and pragma::logging::server_type definitions and remove the #else case.
For all instances where an entity is printed using Con::cout<<ent.print() (or cwar,...), change it to Con::cout<<ent.
The text was updated successfully, but these errors were encountered:
std::format
is currently not properly supported by the clang compiler. Once it is supported, the logging system should be switched to it.Steps:
pragma/third_party_libs/spdlog/include/spdlog/tweakme.h
:Change
to
pragma/CMakeLists.txt
:Change
to
pragma/core/shared/include/pragma/entities/baseentity.h
pragma/core/server/include/pragma/entities/s_baseentity.h
pragma/core/client/include/pragma/entities/c_baseentity.h
Remove
#ifdef _WIN32
around thestd::formatter
code blocks and#include <format>
.pragma/core/shared/src/logging.cpp
Remove
#ifdef _WIN32
around thepragma::logging::client_type
andpragma::logging::server_type
definitions and remove the#else
case.For all instances where an entity is printed using
Con::cout<<ent.print()
(or cwar,...), change it toCon::cout<<ent
.The text was updated successfully, but these errors were encountered: