mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:23:35 +08:00
[fltk] Disable obsolete math.h polyfill (#28558)
* [fltk] Disable obsolete math.h polyfill * Reduce host dependency
This commit is contained in:
parent
a0cd246334
commit
c9fc882384
13
ports/fltk/math-h-polyfill.patch
Normal file
13
ports/fltk/math-h-polyfill.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/FL/math.h b/FL/math.h
|
||||
index b574000..216a2ad 100644
|
||||
--- a/FL/math.h
|
||||
+++ b/FL/math.h
|
||||
@@ -47,7 +47,7 @@
|
||||
# define M_SQRT1_2 0.70710678118654752440
|
||||
# endif // !M_SQRT2
|
||||
|
||||
-# if (defined(WIN32) || defined(CRAY)) && !defined(__MINGW32__) && !defined(__MWERKS__)
|
||||
+# if defined(FLTK_ENABLE_MATH_H_POLYFILL)
|
||||
|
||||
inline double rint(double v) {return floor(v+.5);}
|
||||
inline double copysign(double a, double b) {return b<0 ? -a : a;}
|
@ -11,6 +11,7 @@ vcpkg_from_github(
|
||||
config-path.patch
|
||||
include.patch
|
||||
fix-system-link.patch
|
||||
math-h-polyfill.patch
|
||||
)
|
||||
file(REMOVE_RECURSE
|
||||
"${SOURCE_PATH}/jpeg"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "fltk",
|
||||
"version": "1.3.8",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "FLTK (pronounced fulltick) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.",
|
||||
"homepage": "https://www.fltk.org/",
|
||||
"license": null,
|
||||
@ -9,7 +9,8 @@
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "fltk",
|
||||
"host": true
|
||||
"host": true,
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "fontconfig",
|
||||
|
@ -2378,7 +2378,7 @@
|
||||
},
|
||||
"fltk": {
|
||||
"baseline": "1.3.8",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"fluidlite": {
|
||||
"baseline": "2020-08-27",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "20def1217e8d9ac6306e900f9bdc5662bf593d82",
|
||||
"version": "1.3.8",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "f9c84b6995e5d327678ce90845e994854555e849",
|
||||
"version": "1.3.8",
|
||||
|
Loading…
Reference in New Issue
Block a user