fix build error on VS2012
authorTomoaki Teshima <tomoaki.teshima@gmail.com>
Wed, 12 Apr 2017 11:09:00 +0000 (20:09 +0900)
committerTomoaki Teshima <tomoaki.teshima@gmail.com>
Wed, 12 Apr 2017 11:09:00 +0000 (20:09 +0900)
modules/calib3d/src/ap3p.cpp

index ad2841f..db88a02 100644 (file)
@@ -2,6 +2,9 @@
 
 #include <cmath>
 #include <complex>
+#if defined (_MSC_VER) && (_MSC_VER <= 1700)
+static inline double cbrt(double x) { return (double)cv::cubeRoot((float)x); };
+#endif
 
 using namespace std;