From 010e73010c504435422cf1342c6875aaaaef02cb Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Mon, 19 Mar 2012 06:17:04 +0000 Subject: [PATCH] fixing compilation on Windows (M_PI was undefined via math.h) --- modules/core/include/opencv2/core/core.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/include/opencv2/core/core.hpp b/modules/core/include/opencv2/core/core.hpp index dfb807ca2a..1c0e3014fb 100644 --- a/modules/core/include/opencv2/core/core.hpp +++ b/modules/core/include/opencv2/core/core.hpp @@ -46,6 +46,8 @@ #ifndef __OPENCV_CORE_HPP__ #define __OPENCV_CORE_HPP__ +#define _USE_MATH_DEFINES + #include "opencv2/core/types_c.h" #include "opencv2/core/version.hpp"