summaryrefslogtreecommitdiff
path: root/patches/monero/0021-fix-mingw-build-issues.patch
blob: 50d6a43bf74f3a2d4b1c08ddbe15cd251ef0ab74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From ff7287c028327294a28f4521bf6c05721403016d Mon Sep 17 00:00:00 2001
From: Czarek Nakamoto <cyjan@mrcyjanek.net>
Date: Wed, 4 Mar 2026 14:52:14 +0100
Subject: [PATCH] fix: mingw build issues

---
 contrib/epee/include/serialization/keyvalue_serialization.h | 1 +
 contrib/epee/src/abstract_http_client.cpp                   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/epee/include/serialization/keyvalue_serialization.h b/contrib/epee/include/serialization/keyvalue_serialization.h
index fbbddc7d2..5104f284d 100644
--- a/contrib/epee/include/serialization/keyvalue_serialization.h
+++ b/contrib/epee/include/serialization/keyvalue_serialization.h
@@ -26,6 +26,7 @@
 
 #pragma once
 
+#include <cstdint>
 #include <type_traits>
 #include <boost/utility/value_init.hpp>
 #include <boost/foreach.hpp>
diff --git a/contrib/epee/src/abstract_http_client.cpp b/contrib/epee/src/abstract_http_client.cpp
index 03f73cbbc..70c18cfca 100644
--- a/contrib/epee/src/abstract_http_client.cpp
+++ b/contrib/epee/src/abstract_http_client.cpp
@@ -2,6 +2,7 @@
 #include "net/http_base.h"
 #include "net/net_parse_helpers.h"
 #include "misc_log_ex.h"
+#include <cmath>
 
 #undef MONERO_DEFAULT_LOG_CATEGORY
 #define MONERO_DEFAULT_LOG_CATEGORY "net.http"
@@ -38,7 +39,7 @@ namespace net_utils
     while (num_char >= radix)
     {
       temp = num_char % radix;
-      num_char = (int)floor((float)num_char / (float)radix);
+      num_char = (int)std::floor((float)num_char / (float)radix);
       csTmp = get_hex_vals()[temp];
     }
 
-- 
2.51.0