aboutsummaryrefslogtreecommitdiff
path: root/ports/parmetis/use_stdint.patch
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2019-01-17 00:50:46 +0100
committerPhil Christensen <philc@microsoft.com>2019-01-16 15:50:45 -0800
commite8489a46c11775036f82e9f6ecc25d61feecee66 (patch)
treef8c0d3530f3eafff2b0c42663c488a8fab8699b2 /ports/parmetis/use_stdint.patch
parent13ec61a842588480f49d3c3a6a3b42d70df4fa84 (diff)
downloadvcpkg-e8489a46c11775036f82e9f6ecc25d61feecee66.tar.gz
vcpkg-e8489a46c11775036f82e9f6ecc25d61feecee66.zip
[msmpi] update to 10.0 (#5107)
* [msmpi] update to 10.0 * [parmetis] fix build error
Diffstat (limited to 'ports/parmetis/use_stdint.patch')
-rw-r--r--ports/parmetis/use_stdint.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/ports/parmetis/use_stdint.patch b/ports/parmetis/use_stdint.patch
new file mode 100644
index 000000000..5b239e60c
--- /dev/null
+++ b/ports/parmetis/use_stdint.patch
@@ -0,0 +1,22 @@
+diff --git a/metis/GKlib/ms_stdint.h b/metis/GKlib/ms_stdint.h
+index 7e200dc..0d07a7a 100644
+--- a/metis/GKlib/ms_stdint.h
++++ b/metis/GKlib/ms_stdint.h
+@@ -42,6 +42,10 @@
+
+ #include <limits.h>
+
++#if(_MSC_VER >= 1900)
++ #include <stdint.h>
++#else
++
+ // For Visual Studio 6 in C++ mode wrap <wchar.h> include with 'extern "C++" {}'
+ // or compiler give many errors like this:
+ // error C2733: second C linkage of overloaded function 'wmemchr' not allowed
+@@ -218,5 +222,6 @@ typedef uint64_t uintmax_t;
+
+ #endif // __STDC_CONSTANT_MACROS ]
+
++#endif
+
+ #endif // _MSC_STDINT_H_ ]