vcpkg/ports/libpq/patches/windows/macro-def.patch
Alexander Neumann 52b6604253
[libpq] update to 14.4 and pass flags in msbuild (#26051)
* update libpq and pass flags to msbuild

* v db

* readd patch for linux

* v db

* readd patch

* v db

* Update ports/libpq/patches/fix-configure.patch

* v db

* use #pragma x_macro

* v db

* CI retrigger
2022-08-04 19:31:00 -07:00

19 lines
566 B
Diff

diff --git a/src/include/common/checksum_helper.h b/src/include/common/checksum_helper.h
index cac7570ea..d0ca1243c 100644
--- a/src/include/common/checksum_helper.h
+++ b/src/include/common/checksum_helper.h
@@ -33,7 +28,13 @@
*/
typedef enum pg_checksum_type
{
+#pragma push_macro("CHECKSUM_TYPE_NONE")
+#ifdef CHECKSUM_TYPE_NONE
+// winioctl.h defines CHECKSUM_TYPE_NONE to 0 as a macro.
+#undef CHECKSUM_TYPE_NONE
+#endif
CHECKSUM_TYPE_NONE,
+#pragma pop_macro("CHECKSUM_TYPE_NONE")
CHECKSUM_TYPE_CRC32C,
CHECKSUM_TYPE_SHA224,
CHECKSUM_TYPE_SHA256,