Skip to content

Instantly share code, notes, and snippets.

@rnestler
Created October 24, 2012 12:05
Show Gist options
  • Save rnestler/3945715 to your computer and use it in GitHub Desktop.
Save rnestler/3945715 to your computer and use it in GitHub Desktop.
PCL cygwin patches
--- src/cpp/flann/algorithms/dist.h
+++ src/cpp/flann/algorithms/dist.h
@@ -60,7 +60,7 @@
inline double abs<double>(double x) { return fabs(x); }
template<>
-inline long double abs<long double>(long double x) { return fabsl(x); }
+inline long double abs<long double>(long double x) { return fabs(x); }
template<typename T>
--- common/include/pcl/common/eigen.h
+++ common/include/pcl/common/eigen.h
@@ -112,7 +112,7 @@
template<> inline long double
sqrt<long double> (const long double &val)
{
- return (::sqrt (val));
+ return (::sqrtl (val));
}
/** \brief Compute the roots of a quadratic polynom x^2 + b*x + c = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment