Fix building with GCC 15 (#9643)

* Patch GMP to build on GCC15

* Add cstdint include - GCC15 defaults to C23

* Update GMP PATCH_COMMAND to work without a valid git repo

* Set GMP_DIRECTORY_FLAG
This commit is contained in:
Maciej Lisiewski
2025-05-16 17:48:59 +02:00
committed by GitHub
parent 9110dd51dc
commit 2490564f7f
3 changed files with 44 additions and 6 deletions

View File

@@ -24,6 +24,7 @@
#include <algorithm> // std::sort
#include <cstdlib>
#include <tuple> // std::make_tuple std::get<>
#include <cstdint>
double square_root(const double& number)
@@ -716,7 +717,7 @@
vec2 pp; /*projected p */
#if 0
int k = 0;
for (int j = 0; j < 3; j++)
{ // for each component
if (j != polygon_plane_normal_largest_component)
@@ -830,7 +831,7 @@
}
char compute_segment_intersection(
const vec2& a, const vec2& b, const vec2& c,
const vec2& a, const vec2& b, const vec2& c,
const vec2& d, vec2& p, double& s, double& t)
{
// double s, t; /* The two parameters of the parametric eqns. */