mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
calib3d: fix missing cv::redirectError symbol error
happens on msys2 with gcc 6.2.0 see also http://stackoverflow.com/questions/38552221/undefined-reference-to-cvredirecterror-while-creating-shared-build-of-opencv-3
This commit is contained in:
parent
c93fb14dd2
commit
e79f83e573
@ -621,7 +621,7 @@ String tempfile( const char* suffix )
|
||||
return fname;
|
||||
}
|
||||
|
||||
static CvErrorCallback customErrorCallback = 0;
|
||||
static ErrorCallback customErrorCallback = 0;
|
||||
static void* customErrorCallbackData = 0;
|
||||
static bool breakOnError = false;
|
||||
|
||||
@ -666,13 +666,13 @@ void error(int _code, const String& _err, const char* _func, const char* _file,
|
||||
error(cv::Exception(_code, _err, _func, _file, _line));
|
||||
}
|
||||
|
||||
CvErrorCallback
|
||||
redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
|
||||
ErrorCallback
|
||||
redirectError( ErrorCallback errCallback, void* userdata, void** prevUserdata)
|
||||
{
|
||||
if( prevUserdata )
|
||||
*prevUserdata = customErrorCallbackData;
|
||||
|
||||
CvErrorCallback prevCallback = customErrorCallback;
|
||||
ErrorCallback prevCallback = customErrorCallback;
|
||||
|
||||
customErrorCallback = errCallback;
|
||||
customErrorCallbackData = userdata;
|
||||
|
Loading…
Reference in New Issue
Block a user