[earcut-hpp] include cstdint (#52218)

This commit is contained in:
toge 2026-06-06 06:41:17 +09:00 committed by GitHub
parent 4dbd4a4890
commit 0dfc242f23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/include/mapbox/earcut.hpp b/include/mapbox/earcut.hpp
index a73ae87..6d30bc7 100644
--- a/include/mapbox/earcut.hpp
+++ b/include/mapbox/earcut.hpp
@@ -4,6 +4,7 @@
#include <cassert>
#include <cmath>
#include <cstddef>
+#include <cstdint>
#include <limits>
#include <memory>
#include <utility>

View File

@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 87f52bf99273dc47f78ebacd4ee0ccbab4edd3f9b85d97aed1c0d1165b3e2523e1a71f3a37a118e82170e79d57a2e09644d4115facb63dc6f704affb9c428e6b
HEAD_REF master
PATCHES
include-cstdint.patch # this patch is alread merged. remove it once the next version is released.
)
# This is a header only library

View File

@ -1,6 +1,7 @@
{
"name": "earcut-hpp",
"version": "2.2.4",
"port-version": 1,
"description": "earcut.hpp is a C++ port of earcut.js, a fast, header-only polygon triangulation library.",
"homepage": "https://github.com/mapbox/earcut.hpp",
"license": "ISC"

View File

@ -2702,7 +2702,7 @@
},
"earcut-hpp": {
"baseline": "2.2.4",
"port-version": 0
"port-version": 1
},
"eastl": {
"baseline": "3.27.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0cddb3e60853e9d725903c4fbf10336b35698166",
"version": "2.2.4",
"port-version": 1
},
{
"git-tree": "f4f99272400624124150cb485899cdc3efb24313",
"version": "2.2.4",