Commit cee4edbb authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: add global defines to enable useful macros

parent 86342522
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
#pragma warning( disable : 4267 ) #pragma warning( disable : 4267 )
#endif #endif
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#endif
#include <algorithm> #include <algorithm>
#include "opencv2/core/utility.hpp" #include "opencv2/core/utility.hpp"
......
...@@ -36,12 +36,9 @@ ...@@ -36,12 +36,9 @@
//M*/ //M*/
#include <iostream> #include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
#include <opencv2/imgcodecs.hpp> #include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp> // OpenCV window I/O #include <opencv2/highgui.hpp> // OpenCV window I/O
#include <opencv2/imgproc.hpp> // OpenCV image transformations #include <opencv2/imgproc.hpp> // OpenCV image transformations
#include <opencv2/imgproc.hpp>
#include <opencv2/imgproc/types_c.h> #include <opencv2/imgproc/types_c.h>
#include <opencv2/imgcodecs/imgcodecs_c.h> #include <opencv2/imgcodecs/imgcodecs_c.h>
#include <opencv2/highgui/highgui_c.h> #include <opencv2/highgui/highgui_c.h>
......
...@@ -51,7 +51,9 @@ ...@@ -51,7 +51,9 @@
typedef int int_fast32_t; typedef int int_fast32_t;
#else #else
#ifndef INT32_MAX #ifndef INT32_MAX
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS
#endif
#include <stdint.h> #include <stdint.h>
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment