fixed build on Windows with MSVC2010

This commit is contained in:
Vadim Pisarevsky
2011-02-09 22:45:45 +00:00
parent 0f1a047ed0
commit d9ab1d2b92
6 changed files with 18 additions and 11 deletions

View File

@@ -1,2 +1,4 @@
#define GTEST_CREATE_AS_SHARED_LIBRARY 1
#include "opencv2/ts/ts.hpp"
#include "opencv2/core/core_c.h"

View File

@@ -68,7 +68,7 @@ namespace cvtest
#if defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64
#ifdef _MSC_VER
static void setSEHTranslator( unsigned int /*u*/, EXCEPTION_POINTERS* pExp )
static void SEHTranslator( unsigned int /*u*/, EXCEPTION_POINTERS* pExp )
{
int code = TS::FAIL_EXCEPTION;
switch( pExp->ExceptionRecord->ExceptionCode )