vcpkg/ports/pqp/fix-math-functions.patch
Tobias Kohlbau 2b64dfd415
[pqp] fixes wrong declaration of math functions
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2017-04-04 12:21:26 +02:00

20 lines
811 B
Diff

diff --git a/src/PQP_Compile.h b/src/PQP_Compile.h
index f76c981..8a70710 100644
--- a/src/PQP_Compile.h
+++ b/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); }
//-------------------------------------------------------------------------
//