Skip to content

Commit 6d35028

Browse files
committed
core: include version.hpp in cvdef.h, fix precomp.hpp usage
1 parent f044529 commit 6d35028

File tree

11 files changed

+12
-14
lines changed

11 files changed

+12
-14
lines changed

modules/core/include/opencv2/core.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
#endif
5151

5252
#include "opencv2/core/cvdef.h"
53-
#include "opencv2/core/version.hpp"
5453
#include "opencv2/core/base.hpp"
5554
#include "opencv2/core/cvstd.hpp"
5655
#include "opencv2/core/traits.hpp"

modules/core/include/opencv2/core/cvdef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#ifndef OPENCV_CORE_CVDEF_H
4646
#define OPENCV_CORE_CVDEF_H
4747

48+
#include "opencv2/core/version.hpp"
49+
4850
//! @addtogroup core_utils
4951
//! @{
5052

modules/core/include/opencv2/core/simd_intrinsics.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ or generated by CMake on the fly (use CMAKE_BINARY_DIR for that).
4040
#endif
4141

4242
#include "opencv2/core/cvdef.h"
43-
#include "opencv2/core/version.hpp"
4443

4544
#ifdef OPENCV_SIMD_CONFIG_HEADER
4645
#include CVAUX_STR(OPENCV_SIMD_CONFIG_HEADER)

modules/core/src/hal_internal.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
//
4343
//M*/
4444

45+
#include "precomp.hpp"
4546
#include "hal_internal.hpp"
4647

4748
#ifdef HAVE_LAPACK

modules/core/src/hal_internal.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
#ifndef OPENCV_CORE_HAL_INTERNAL_HPP
4646
#define OPENCV_CORE_HAL_INTERNAL_HPP
4747

48-
#include "precomp.hpp"
49-
5048
#ifdef HAVE_LAPACK
5149

5250
int lapack_LU32f(float* a, size_t a_step, int m, float* b, size_t b_step, int n, int* info);

modules/core/src/intel_gpu_gemm.inl.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#ifdef HAVE_OPENCL
2626

2727
#include <sstream>
28-
#include "precomp.hpp"
2928
#include "opencl_kernels_core.hpp"
3029
#include "opencv2/core/opencl/runtime/opencl_clamdblas.hpp"
3130
#include "opencv2/core/opencl/runtime/opencl_core.hpp"

modules/core/src/matrix_c.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
// This file is part of OpenCV project.
2+
// It is subject to the license terms in the LICENSE file found in the top-level directory
3+
// of this distribution and at http://opencv.org/license.html
4+
5+
#include "precomp.hpp"
16
#include "opencv2/core/mat.hpp"
27
#include "opencv2/core/types_c.h"
3-
#include "precomp.hpp"
48

59
// glue
610

modules/core/src/matrix_iterator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
// It is subject to the license terms in the LICENSE file found in the top-level directory
33
// of this distribution and at http://opencv.org/license.html
44

5-
6-
#include "opencv2/core/mat.hpp"
75
#include "precomp.hpp"
6+
#include "opencv2/core/mat.hpp"
87

98
namespace cv {
109

modules/core/src/matrix_operations.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// It is subject to the license terms in the LICENSE file found in the top-level directory
33
// of this distribution and at http://opencv.org/license.html
44

5-
5+
#include "precomp.hpp"
66
#include "opencv2/core/mat.hpp"
77
#include "opencv2/core/types_c.h"
88
#include "opencl_kernels_core.hpp"
9-
#include "precomp.hpp"
109

1110
#undef HAVE_IPP
1211
#undef CV_IPP_RUN_FAST

modules/core/src/matrix_sparse.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
// It is subject to the license terms in the LICENSE file found in the top-level directory
33
// of this distribution and at http://opencv.org/license.html
44

5-
5+
#include "precomp.hpp"
66
#include "opencv2/core/mat.hpp"
77
#include "opencv2/core/types_c.h"
8-
#include "precomp.hpp"
98

109
namespace cv {
1110

0 commit comments

Comments
 (0)