mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 11:03:03 +08:00
core: fix visibility handling
This commit is contained in:
parent
5c05b7bc01
commit
4a8fd71a2e
@ -371,10 +371,10 @@ Cv64suf;
|
|||||||
# define OPENCV_DISABLE_DEPRECATED_COMPATIBILITY
|
# define OPENCV_DISABLE_DEPRECATED_COMPATIBILITY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CVAPI_EXPORTS
|
#ifndef CV_EXPORTS
|
||||||
# if (defined _WIN32 || defined WINCE || defined __CYGWIN__)
|
# if (defined _WIN32 || defined WINCE || defined __CYGWIN__) && defined(CVAPI_EXPORTS)
|
||||||
# define CV_EXPORTS __declspec(dllexport)
|
# define CV_EXPORTS __declspec(dllexport)
|
||||||
# elif defined __GNUC__ && __GNUC__ >= 4
|
# elif defined __GNUC__ && __GNUC__ >= 4 && (defined(CVAPI_EXPORTS) || defined(__APPLE__))
|
||||||
# define CV_EXPORTS __attribute__ ((visibility ("default")))
|
# define CV_EXPORTS __attribute__ ((visibility ("default")))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user