Commit 7efb2491 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #887 from LeszekSwirski:fix-glinkedptrmutex

parents b5c01368 0e8c2b03
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
#include "opencv2/core/cvdef.h" #include "opencv2/core/cvdef.h"
#include <stdarg.h> // for va_list #include <stdarg.h> // for va_list
#include "cvconfig.h"
#ifndef GTEST_CREATE_SHARED_LIBRARY
#ifdef BUILD_SHARED_LIBS
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
#endif
#endif
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning( disable: 4127 ) #pragma warning( disable: 4127 )
#endif #endif
......
...@@ -1912,7 +1912,19 @@ using ::std::tuple_size; ...@@ -1912,7 +1912,19 @@ using ::std::tuple_size;
#endif // GTEST_HAS_SEH #endif // GTEST_HAS_SEH
#define GTEST_API_ CV_EXPORTS #ifdef _MSC_VER
# if GTEST_LINKED_AS_SHARED_LIBRARY
# define GTEST_API_ __declspec(dllimport)
# elif GTEST_CREATE_SHARED_LIBRARY
# define GTEST_API_ __declspec(dllexport)
# endif
#endif // _MSC_VER
#ifndef GTEST_API_
# define GTEST_API_ CV_EXPORTS
#endif
#ifdef __GNUC__ #ifdef __GNUC__
// Ask the compiler to never inline a given function. // Ask the compiler to never inline a given function.
......
#ifndef __OPENCV_TS_PERF_HPP__ #ifndef __OPENCV_TS_PERF_HPP__
#define __OPENCV_TS_PERF_HPP__ #define __OPENCV_TS_PERF_HPP__
#include "cvconfig.h"
#ifndef GTEST_CREATE_SHARED_LIBRARY
# ifdef BUILD_SHARED_LIBS
# define GTEST_LINKED_AS_SHARED_LIBRARY 1
# endif
#endif
#include "opencv2/core.hpp" #include "opencv2/core.hpp"
#include "ts_gtest.h" #include "ts_gtest.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment