From 201d4a068df4027dce82211afae8edf51ed9a9a4 Mon Sep 17 00:00:00 2001 From: Victor Erukhimov Date: Tue, 25 May 2010 13:47:12 +0000 Subject: [PATCH] Added a warning for deprecated headers --- include/opencv/cv.h | 3 +++ include/opencv/cvaux.h | 3 +++ 2 files changed, 6 insertions(+) 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"