Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -61,7 +61,6 @@ ocv_update(OPENCV_PYTHON_EXTENSION_BUILD_PATH "${LIBRARY_OUTPUT_PATH}/${MODULE_I
|
||||
set_target_properties(${the_module} PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY "${OPENCV_PYTHON_EXTENSION_BUILD_PATH}"
|
||||
ARCHIVE_OUTPUT_NAME ${the_module} # prevent name conflict for python2/3 outputs
|
||||
DEFINE_SYMBOL CVAPI_EXPORTS
|
||||
PREFIX ""
|
||||
OUTPUT_NAME cv2
|
||||
SUFFIX ${CVPY_SUFFIX})
|
||||
|
||||
@@ -1797,8 +1797,12 @@ static int to_ok(PyTypeObject *to)
|
||||
}
|
||||
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC visibility push(default)
|
||||
#endif
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
extern "C" CV_EXPORTS PyObject* PyInit_cv2();
|
||||
PyMODINIT_FUNC PyInit_cv2();
|
||||
static struct PyModuleDef cv2_moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
@@ -1811,7 +1815,7 @@ static struct PyModuleDef cv2_moduledef =
|
||||
|
||||
PyObject* PyInit_cv2()
|
||||
#else
|
||||
extern "C" CV_EXPORTS void initcv2();
|
||||
PyMODINIT_FUNC initcv2();
|
||||
|
||||
void initcv2()
|
||||
#endif
|
||||
|
||||
@@ -827,7 +827,7 @@ class CppHeaderParser(object):
|
||||
if state == DOCSTRING:
|
||||
pos = l.find("*/")
|
||||
if pos < 0:
|
||||
docstring += l + "\n"
|
||||
docstring += l0
|
||||
continue
|
||||
docstring += l[:pos] + "\n"
|
||||
l = l[pos+2:]
|
||||
|
||||
Reference in New Issue
Block a user