fix: Resolve compilation issues with fmt library and formatters

Fix multiple compilation errors preventing successful build:

* Add const qualifier to custom fmt formatter functions across codebase
  - Updated formatters in logging, shader recompiler, texture cache, and other modules
  - Ensures compatibility with newer fmt library versions

* Add missing fmt/ranges.h includes for fmt::join usage
  - Fixed fmt::join calls in Vulkan renderer, GDB stub, NFC service, and main window
  - Resolves "no member named 'join' in namespace 'fmt'" errors

* Exclude unsupported platforms from Boost.Process usage in debugger
  - Extended conditional compilation to avoid Boost.Process where unavailable

* Fix type casting issues in AOC service manager
  - Resolved std::min type mismatch with explicit casting
This commit is contained in:
Boss.sfc
2025-07-16 11:11:33 +07:00
parent 25e8c0539c
commit 0fb39034c1
21 changed files with 37 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
#include <thread>
#include <boost/asio.hpp>
#ifndef __ANDROID__
#if !defined(__ANDROID__) && !defined(__APPLE__)
#include <boost/process/async_pipe.hpp>
#endif
@@ -161,10 +161,10 @@ private:
// Set the new state. This will tear down any existing state.
state = ConnectionState{
.client_socket{std::move(peer)},
#ifndef __ANDROID__
#if !defined(__ANDROID__) && !defined(__APPLE__)
.signal_pipe{io_context},
#else
// Use a regular socket pair for Android
// Use a regular socket pair for Android and macOS
.signal_pipe{io_context},
#endif
.info{},
@@ -333,10 +333,10 @@ private:
struct ConnectionState {
boost::asio::ip::tcp::socket client_socket;
#ifndef __ANDROID__
#if !defined(__ANDROID__) && !defined(__APPLE__)
boost::process::async_pipe signal_pipe;
#else
// Use a regular socket pair for Android
// Use a regular socket pair for Android and macOS
boost::asio::ip::tcp::socket signal_pipe;
#endif