vcpkg/ports/pqp/fix-math-functions.patch
Stefano Sinigardi 726c111481 [vcpkg] fatal_error when patch fails to apply (#8087)
vcpkg will now fail on failure to apply patches except when using `--head`.
2019-10-07 10:35:13 -07:00

18 lines
748 B
Diff

--- 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); }
//-------------------------------------------------------------------------
//