diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2026-03-06 12:06:40 +0100 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2026-03-06 12:06:40 +0100 |
| commit | 5829d5f594b1e1fc5a8b78be17afe5bb0878ee91 (patch) | |
| tree | b0a3a272d6edc43306ca7bcb3662d0b064129a30 /patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch | |
| parent | da4ec54f5296135ab1614b6ae91b0897456de952 (diff) | |
wip
Diffstat (limited to 'patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch')
| -rw-r--r-- | patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch b/patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch new file mode 100644 index 0000000..453d651 --- /dev/null +++ b/patches/monero/0013-include-locale-only-when-targeting-WIN32 copy.patch @@ -0,0 +1,44 @@ +From db52bcebe23b29b35ae538f01e72ed4f7f66f931 Mon Sep 17 00:00:00 2001 +From: Czarek Nakamoto <cyjan@mrcyjanek.net> +Date: Mon, 18 Nov 2024 10:57:37 -0500 +Subject: [PATCH 13/17] include locale only when targeting WIN32 + +--- + CMakeLists.txt | 6 +++++- + src/wallet/api/wallet.cpp | 2 ++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1eac121db..5938be622 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1089,7 +1089,11 @@ if(NOT Boost_FOUND) + elseif(Boost_FOUND) + message(STATUS "Found Boost Version: ${Boost_VERSION_STRING}") + +- set(BOOST_COMPONENTS filesystem thread date_time chrono serialization program_options locale) ++ set(BOOST_COMPONENTS filesystem thread date_time chrono serialization program_options) ++ ++ if(WIN32) ++ list(APPEND BOOST_COMPONENTS locale) ++ endif() + + # Boost System is header-only since 1.69 + if (Boost_VERSION_STRING VERSION_LESS 1.69.0) +diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp +index 20ccbfb35..c43803033 100644 +--- a/src/wallet/api/wallet.cpp ++++ b/src/wallet/api/wallet.cpp +@@ -46,7 +46,9 @@ + #include <sstream> + #include <unordered_map> + ++#ifdef WIN32 + #include <boost/locale.hpp> ++#endif + #include <boost/filesystem.hpp> + #include "bc-ur/src/bc-ur.hpp" + #if defined(HIDAPI_DUMMY) && !defined(HAVE_HIDAPI) +-- +2.49.0 + |
