diff --git a/include/opencv/cv.h b/include/opencv/cv.h index f5bff94e1a..aa237ac338 100644 --- a/include/opencv/cv.h +++ b/include/opencv/cv.h @@ -43,6 +43,9 @@ #ifndef __OPENCV_OLD_CV_H__ #define __OPENCV_OLD_CV_H__ +#pragma warning("This is a deprecated opencv header provided for compatibility. Please \ +include a header from a corresponding opencv module") + #include "opencv2/core/core_c.h" #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc_c.h" diff --git a/include/opencv/cvaux.h b/include/opencv/cvaux.h index 205dd5ed22..6ae7061a15 100644 --- a/include/opencv/cvaux.h +++ b/include/opencv/cvaux.h @@ -42,6 +42,9 @@ #ifndef __OPENCV_OLD_AUX_H__ #define __OPENCV_OLD_AUX_H__ +#pragma warning("This is a deprecated opencv header provided for compatibility. Please \ +include a header from a corresponding opencv module") + #include "opencv2/core/core_c.h" #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc_c.h"