0
0
mirror of https://github.com/monero-project/monero synced 2025-10-06 00:32:44 +02:00

epee: include math header for upcoming Boost 1.89

When building on Ubuntu 22.04 with GCC 11.4.0 and Boost 1.89.0.beta1,
the build failed with:
```
error: ‘floor’ was not declared in this scope
     41 |       num_char = (int)floor((float)num_char / (float)radix);
        |                       ^~~~~
```

Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
Michael Cho
2025-08-12 20:01:19 -04:00
parent 389e3ba1df
commit f61294dc6b

View File

@@ -1,3 +1,4 @@
#include <math.h>
#include "net/abstract_http_client.h"
#include "net/http_base.h"
#include "net/net_parse_helpers.h"