Added build warnings in case of macro definition conflicts

pull/6161/head
Maksim Shabunin 9 years ago
parent ee2f8d006f
commit 3cc234588a
  1. 4
      modules/core/include/opencv2/core/utility.hpp
  2. 4
      modules/stitching/include/opencv2/stitching/detail/blenders.hpp
  3. 4
      modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp

@ -49,6 +49,10 @@
# error utility.hpp header must be compiled as C++
#endif
#if defined(check)
# warning Detected Apple 'check' macro definition, it can cause build conflicts. Please, include this header before any Apple headers.
#endif
#include "opencv2/core.hpp"
namespace cv

@ -43,6 +43,10 @@
#ifndef __OPENCV_STITCHING_BLENDERS_HPP__
#define __OPENCV_STITCHING_BLENDERS_HPP__
#if defined(NO)
# warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers.
#endif
#include "opencv2/core.hpp"
namespace cv {

@ -43,6 +43,10 @@
#ifndef __OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP__
#define __OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP__
#if defined(NO)
# warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers.
#endif
#include "opencv2/core.hpp"
namespace cv {

Loading…
Cancel
Save