mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 04:25:42 +08:00
cmake: add global defines to enable useful macros
This commit is contained in:
@@ -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 @@
|
|||||||
//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 @@
|
|||||||
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
|
||||||
|
Reference in New Issue
Block a user