mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Manage Python Limited API version externally.
This commit is contained in:
@@ -13,7 +13,10 @@
|
||||
// #define Py_DEBUG
|
||||
|
||||
#if defined(CVPY_DYNAMIC_INIT) && !defined(Py_DEBUG)
|
||||
# define Py_LIMITED_API 0x03030000
|
||||
# ifndef PYTHON3_LIMITED_API_VERSION
|
||||
# define PYTHON3_LIMITED_API_VERSION 0x03060000
|
||||
# endif
|
||||
# define Py_LIMITED_API PYTHON3_LIMITED_API_VERSION
|
||||
#endif
|
||||
|
||||
#include <cmath>
|
||||
|
||||
Reference in New Issue
Block a user