mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
build: eliminate c++17 Python build warning
This commit is contained in:
parent
65ba2e0adf
commit
9e298ea1bb
@ -1,9 +1,13 @@
|
|||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
||||||
// eliminating duplicated round() declaration
|
// eliminating duplicated round() declaration
|
||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:5033) // 'register' is no longer a supported storage class
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MODULESTR "cv2"
|
#define MODULESTR "cv2"
|
||||||
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user