Skip to content

Commit 71fa66a

Browse files
committed
Test
1 parent b49a1f0 commit 71fa66a

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

src_cpp/core.hpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#include "ocvrs_common.hpp"
22
#include <opencv2/core/affine.hpp>
3-
#ifdef HAVE_OPENCL
4-
#include <opencv2/core/ocl.hpp>
5-
// opengl.hpp, va_intel.hpp and directx.hpp unconditionally include ocl.hpp thus it needs to be within ifdef HAVE_OPENCL
6-
#ifdef HAVE_OPENGL
7-
#include <opencv2/core/opengl.hpp>
8-
#endif
9-
#include <opencv2/core/va_intel.hpp>
10-
#include <opencv2/core/directx.hpp>
11-
#endif
3+
#include <opencv2/core/directx.hpp>
4+
#include <opencv2/core/ocl.hpp>
5+
#include <opencv2/core/va_intel.hpp>
126
#include <opencv2/core/cuda.hpp>
7+
#include <opencv2/core/opengl.hpp>
8+
#include <opencv2/core/directx.hpp>
139
#if (CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 4 && CV_VERSION_REVISION >= 4) /* 3.4.4+ */ \
1410
|| (CV_VERSION_MAJOR == 4) /* 4.0+ */ \
1511
|| (CV_VERSION_MAJOR == 5) /* 5.0+ */

src_cpp/ocvrs_common.hpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#ifndef __OCVRS_COMMON_HPP__
22
#define __OCVRS_COMMON_HPP__
33

4-
#include <memory>
5-
#include <opencv2/cvconfig.h>
6-
// defining HAVE_VA starts to rely on <va/va.h> for VADisplay and VASurfaceID instead of OpenCV stubs, and we stop generating
7-
// bindings for the functions that use them
8-
#undef HAVE_VA
4+
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__) \
5+
|| defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
6+
#define OCVRS_TARGET_OS_WINDOWS
7+
#endif
98

109
#define CV_COLLECT_IMPL_DATA
1110
#ifdef OCVRS_PARSING_HEADERS
@@ -16,13 +15,9 @@
1615
#define OCVRS_FFI_EXPORT_SUFFIX
1716
#endif
1817

18+
#include <memory>
1919
#include <opencv2/core.hpp>
2020

21-
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__) \
22-
|| defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
23-
#define OCVRS_TARGET_OS_WINDOWS
24-
#endif
25-
2621
#define OCVRS_ONLY_DEPENDENT_TYPES
2722

2823
#define OCVRS_HANDLE(code, msg, return_name) Err(code, msg, return_name)

0 commit comments

Comments
 (0)