build: fix defines

pull/1466/head
Alexander Alekhin 7 years ago
parent 09c3be3f0f
commit e878ea952a
  1. 3
      modules/saliency/src/BING/kyheader.hpp
  2. 2
      modules/sfm/src/libmv_light/libmv/numeric/numeric.h
  3. 2
      modules/xfeatures2d/samples/bagofwords_classification.cpp

@ -78,7 +78,10 @@ typedef void *HANDLE;
#ifndef _MSC_VER
typedef unsigned char BYTE;
#else
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min
#undef max
#endif
typedef std::vector<int> vecI;

@ -43,7 +43,7 @@ static void sincos(double x, double *sinx, double *cosx) {
# endif
#endif // !__MINGW64__
#if (defined(WIN32) || defined(WIN64)) && !defined(__MINGW32__)
#if (defined(_WIN32)) && !defined(__MINGW32__)
inline long lround(double d) {
return (long)(d>0 ? d+0.5 : ceil(d-0.5));
}

@ -14,7 +14,7 @@
#include <memory>
#include <functional>
#if defined WIN32 || defined _WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min

Loading…
Cancel
Save