diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/pqp/fix-math-functions.patch | |
Diffstat (limited to 'vcpkg/ports/pqp/fix-math-functions.patch')
| -rw-r--r-- | vcpkg/ports/pqp/fix-math-functions.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/pqp/fix-math-functions.patch b/vcpkg/ports/pqp/fix-math-functions.patch new file mode 100644 index 0000000..51a4f15 --- /dev/null +++ b/vcpkg/ports/pqp/fix-math-functions.patch @@ -0,0 +1,17 @@ +--- a/PQP_v1.3/src/PQP_Compile.h ++++ b/PQP_v1.3/src/PQP_Compile.h +@@ -44,10 +44,10 @@ + // prevents compiler warnings when PQP_REAL is float + + #include <math.h> +-inline float sqrt(float x) { return (float)sqrt((double)x); } +-inline float cos(float x) { return (float)cos((double)x); } +-inline float sin(float x) { return (float)sin((double)x); } +-inline float fabs(float x) { return (float)fabs((double)x); } ++//inline float sqrt(float x) { return (float)sqrt((double)x); } ++//inline float cos(float x) { return (float)cos((double)x); } ++//inline float sin(float x) { return (float)sin((double)x); } ++//inline float fabs(float x) { return (float)fabs((double)x); } + + //------------------------------------------------------------------------- + // |