diff --git a/modules/gapi/include/opencv2/gapi/own/exports.hpp b/modules/gapi/include/opencv2/gapi/own/exports.hpp index b1eddaa591..53bff2aef4 100644 --- a/modules/gapi/include/opencv2/gapi/own/exports.hpp +++ b/modules/gapi/include/opencv2/gapi/own/exports.hpp @@ -11,8 +11,10 @@ # if defined(__OPENCV_BUILD) # include # define GAPI_EXPORTS CV_EXPORTS - # else +# define GAPI_EXPORTS + +#if 0 // Note: the following version currently is not needed for non-OpenCV build # if defined _WIN32 # define GAPI_EXPORTS __declspec(dllexport) # elif defined __GNUC__ && __GNUC__ >= 4 @@ -22,6 +24,7 @@ # ifndef GAPI_EXPORTS # define GAPI_EXPORTS # endif +#endif # endif