aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/coolprop/fix-builderror.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/coolprop/fix-builderror.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/coolprop/fix-builderror.patch')
-rw-r--r--vcpkg/ports/coolprop/fix-builderror.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/coolprop/fix-builderror.patch b/vcpkg/ports/coolprop/fix-builderror.patch
new file mode 100644
index 0000000..de07acb
--- /dev/null
+++ b/vcpkg/ports/coolprop/fix-builderror.patch
@@ -0,0 +1,25 @@
+diff --git a/include/CPmsgpack.h b/include/CPmsgpack.h
+index e11f6be..948cc65 100644
+--- a/include/CPmsgpack.h
++++ b/include/CPmsgpack.h
+@@ -6,7 +6,6 @@
+
+ // Workaround MSVC endiannes issues
+ #if defined(_MSC_VER) && ( defined(_M_ARM) || defined(_M_ARM64) )
+-# define MSGPACK_ENDIAN_LITTLE_BYTE
+ #endif
+
+ #include "msgpack.hpp"
+diff --git a/src/ODEIntegrators.cpp b/src/ODEIntegrators.cpp
+index 23bd4c4..beab710 100644
+--- a/src/ODEIntegrators.cpp
++++ b/src/ODEIntegrators.cpp
+@@ -4,6 +4,8 @@
+ #include "CPstrings.h"
+ #include "Exceptions.h"
+ #include <algorithm>
++#undef max
++#undef min
+
+ bool ODEIntegrators::AdaptiveRK54(AbstractODEIntegrator& ode, double tstart, double tend, double hmin, double hmax, double eps_allowed,
+ double step_relax) {