Commit e878ea95 authored by Alexander Alekhin's avatar Alexander Alekhin

build: fix defines

parent 09c3be3f
......@@ -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
......
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