Explorar o código

mapbox_earcut: fix GCC15 (#7410)

* gcc 15 fix

* cl
Saikari hai 1 mes
pai
achega
83be676d9b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      packages/m/mapbox_earcut/xmake.lua

+ 3 - 3
packages/m/mapbox_earcut/xmake.lua

@@ -1,5 +1,4 @@
 package("mapbox_earcut")
 package("mapbox_earcut")
-
     set_kind("library", {headeronly = true})
     set_kind("library", {headeronly = true})
     set_homepage("https://github.com/mapbox/earcut.hpp")
     set_homepage("https://github.com/mapbox/earcut.hpp")
     set_description("A C++ port of earcut.js, a fast, header-only polygon triangulation library.")
     set_description("A C++ port of earcut.js, a fast, header-only polygon triangulation library.")
@@ -7,9 +6,12 @@ package("mapbox_earcut")
 
 
     add_urls("https://github.com/mapbox/earcut.hpp/archive/refs/tags/v$(version).zip",
     add_urls("https://github.com/mapbox/earcut.hpp/archive/refs/tags/v$(version).zip",
              "https://github.com/mapbox/earcut.hpp.git")
              "https://github.com/mapbox/earcut.hpp.git")
+
     add_versions("2.2.4", "998ae183e3c27f6f5cfed589164c3fb495ab9f805fc8d54e7151a42dab6c89bc")
     add_versions("2.2.4", "998ae183e3c27f6f5cfed589164c3fb495ab9f805fc8d54e7151a42dab6c89bc")
     add_versions("2.2.3", "010d2fe35938744960dcc0b25076eb541b07bb314a92afbcab14f7f887ceb98d")
     add_versions("2.2.3", "010d2fe35938744960dcc0b25076eb541b07bb314a92afbcab14f7f887ceb98d")
+
     add_patches("2.2.3", path.join(os.scriptdir(), "patches", "2.2.3", "mingw.patch"), "ac6ceb3d494d5a553936f6845c2df41d567614e33e389f47fe1520d6070a30e0")
     add_patches("2.2.3", path.join(os.scriptdir(), "patches", "2.2.3", "mingw.patch"), "ac6ceb3d494d5a553936f6845c2df41d567614e33e389f47fe1520d6070a30e0")
+    add_patches("2.2.4", "https://github.com/mapbox/earcut.hpp/commit/7fa7aa30183849e988ae79ab2eef19f9ae97acf4.diff", "891b61c70619dc9bfe4d76097ce55084c246a3bb781e7b9994929f14e6059f4d")
 
 
     on_install(function (package)
     on_install(function (package)
         os.cp("include/mapbox", package:installdir("include"))
         os.cp("include/mapbox", package:installdir("include"))
@@ -20,10 +22,8 @@ package("mapbox_earcut")
             #include <mapbox/earcut.hpp>
             #include <mapbox/earcut.hpp>
             #include <vector>
             #include <vector>
             #include <array>
             #include <array>
-
             using N = uint32_t;
             using N = uint32_t;
             using PolyPoint2D = std::array<double, 2>;
             using PolyPoint2D = std::array<double, 2>;
-
             void test () {
             void test () {
                 std::vector<std::vector<PolyPoint2D> > polygons2d;
                 std::vector<std::vector<PolyPoint2D> > polygons2d;
                 mapbox::earcut<N>(polygons2d);
                 mapbox::earcut<N>(polygons2d);