aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/fltk/math-h-polyfill.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/fltk/math-h-polyfill.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/fltk/math-h-polyfill.patch')
-rw-r--r--vcpkg/ports/fltk/math-h-polyfill.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/fltk/math-h-polyfill.patch b/vcpkg/ports/fltk/math-h-polyfill.patch
new file mode 100644
index 0000000..1591f19
--- /dev/null
+++ b/vcpkg/ports/fltk/math-h-polyfill.patch
@@ -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;}