From c145f28c710e58f556daf646cb71e60e83a9603f Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Wed, 12 Apr 2017 20:09:00 +0900 Subject: [PATCH] fix build error on VS2012 --- modules/calib3d/src/ap3p.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/calib3d/src/ap3p.cpp b/modules/calib3d/src/ap3p.cpp index ad2841fe98..db88a02d04 100644 --- a/modules/calib3d/src/ap3p.cpp +++ b/modules/calib3d/src/ap3p.cpp @@ -2,6 +2,9 @@ #include #include +#if defined (_MSC_VER) && (_MSC_VER <= 1700) +static inline double cbrt(double x) { return (double)cv::cubeRoot((float)x); }; +#endif using namespace std;