fix.patch 883 B

12345678910111213141516171819202122232425262728
  1. diff --git a/PQP_v1.3/src/GetTime.h b/PQP_v1.3/src/GetTime.h
  2. index 5529a08..62521f4 100644
  3. --- a/PQP_v1.3/src/GetTime.h
  4. +++ b/PQP_v1.3/src/GetTime.h
  5. @@ -41,7 +41,7 @@
  6. #ifndef PQP_GETTIME_H
  7. #define PQP_GETTIME_H
  8. -#ifdef WIN32
  9. +#ifdef _WIN32
  10. #include <time.h>
  11. #include <sys/timeb.h>
  12. diff --git a/PQP_v1.3/src/PQP_Compile.h b/PQP_v1.3/src/PQP_Compile.h
  13. index f76c981..a5e36b1 100644
  14. --- a/PQP_v1.3/src/PQP_Compile.h
  15. +++ b/PQP_v1.3/src/PQP_Compile.h
  16. @@ -44,10 +44,6 @@
  17. // prevents compiler warnings when PQP_REAL is float
  18. #include <math.h>
  19. -inline float sqrt(float x) { return (float)sqrt((double)x); }
  20. -inline float cos(float x) { return (float)cos((double)x); }
  21. -inline float sin(float x) { return (float)sin((double)x); }
  22. -inline float fabs(float x) { return (float)fabs((double)x); }
  23. //-------------------------------------------------------------------------
  24. //