build: eliminate c++17 Python build warning

This commit is contained in:
Alexander Alekhin 2018-02-08 18:21:46 +03:00
parent 65ba2e0adf
commit 9e298ea1bb

View File

@ -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