mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 10:00:34 +08:00
44 lines
985 B
Diff
44 lines
985 B
Diff
|
diff --git a/include/UtilFoundation.h b/include/UtilFoundation.h
|
||
|
index 2eb6290..a449b5b 100644
|
||
|
--- a/include/UtilFoundation.h
|
||
|
+++ b/include/UtilFoundation.h
|
||
|
@@ -90,6 +90,9 @@
|
||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||
|
#define WIN32_LEAN_AND_MEAN
|
||
|
#endif
|
||
|
+#ifndef NOMINMAX
|
||
|
+#define NOMINMAX
|
||
|
+#endif
|
||
|
|
||
|
// needed for mutex stuff
|
||
|
#include <Windows.h>
|
||
|
diff --git a/src/FieldMapping.cpp b/src/FieldMapping.cpp
|
||
|
index b1f1a1f..90612b1 100644
|
||
|
--- a/src/FieldMapping.cpp
|
||
|
+++ b/src/FieldMapping.cpp
|
||
|
@@ -49,9 +49,6 @@
|
||
|
#include "FieldMapping.h"
|
||
|
#include "Types.h"
|
||
|
|
||
|
-#ifdef WIN32
|
||
|
-#define isnan(__x__) _isnan(__x__)
|
||
|
-#endif
|
||
|
|
||
|
//----------------------------------------------------------------------------//
|
||
|
|
||
|
diff --git a/src/Log.cpp b/src/Log.cpp
|
||
|
index f78229c..d095a50 100644
|
||
|
--- a/src/Log.cpp
|
||
|
+++ b/src/Log.cpp
|
||
|
@@ -40,8 +40,9 @@
|
||
|
*/
|
||
|
|
||
|
//----------------------------------------------------------------------------//
|
||
|
-
|
||
|
+#ifndef _WIN32
|
||
|
#include <unistd.h>
|
||
|
+#endif
|
||
|
#include <ios>
|
||
|
#include <fstream>
|
||
|
|