Skip to content

Commit 8532180

Browse files
committed
Merge pull request opencv#8567 from tomoaki0705:fixCbrtVS2012
2 parents 4d3cef3 + c145f28 commit 8532180

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/calib3d/src/ap3p.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#include <cmath>
44
#include <complex>
5+
#if defined (_MSC_VER) && (_MSC_VER <= 1700)
6+
static inline double cbrt(double x) { return (double)cv::cubeRoot((float)x); };
7+
#endif
58

69
using namespace std;
710

0 commit comments

Comments
 (0)