diff options
Diffstat (limited to 'intern/libmv')
-rw-r--r-- | intern/libmv/CMakeLists.txt | 3 | ||||
-rw-r--r-- | intern/libmv/libmv/tracking/track_region.cc | 3 | ||||
-rw-r--r-- | intern/libmv/libmv/tracking/track_region.h | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/intern/libmv/CMakeLists.txt b/intern/libmv/CMakeLists.txt index 019364d84df..e16e27368d0 100644 --- a/intern/libmv/CMakeLists.txt +++ b/intern/libmv/CMakeLists.txt @@ -38,6 +38,9 @@ set(LIB ) if(WITH_LIBMV) + if(WIN32) + add_definitions(-D_USE_MATH_DEFINES) + endif() add_definitions(${GFLAGS_DEFINES}) add_definitions(${GLOG_DEFINES}) add_definitions(${CERES_DEFINES}) diff --git a/intern/libmv/libmv/tracking/track_region.cc b/intern/libmv/libmv/tracking/track_region.cc index ef6dac65236..895c9a1e23d 100644 --- a/intern/libmv/libmv/tracking/track_region.cc +++ b/intern/libmv/libmv/tracking/track_region.cc @@ -25,9 +25,6 @@ // smart coder went through the TODO's and made the suggested performance // enhancements. -// Necessary for M_E when building with MSVC. -#define _USE_MATH_DEFINES - #include "libmv/tracking/track_region.h" #include <Eigen/SVD> diff --git a/intern/libmv/libmv/tracking/track_region.h b/intern/libmv/libmv/tracking/track_region.h index be1d8ef3e03..61dce22bcb8 100644 --- a/intern/libmv/libmv/tracking/track_region.h +++ b/intern/libmv/libmv/tracking/track_region.h @@ -20,9 +20,6 @@ #ifndef LIBMV_TRACKING_TRACK_REGION_H_ -// Necessary for M_E when building with MSVC. -#define _USE_MATH_DEFINES - #include "libmv/image/image.h" #include "libmv/image/sample.h" #include "libmv/numeric/numeric.h" |