mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user