From 34e3f289aa1d592b3922e9172314f824dcd4fc67 Mon Sep 17 00:00:00 2001 From: Morten Borup Petersen Date: Tue, 3 Sep 2024 15:54:35 +0200 Subject: [PATCH] Minimum viable changes for Windows build This + PRs https://github.com/substrait-io/substrait-cpp/pull/109 and https://github.com/substrait-io/substrait-cpp/pull/108 should be sufficient for a minimum-viable Windows (MSVC) build of this project. --- src/substrait/textplan/PlanPrinterVisitor.cpp | 5 +++++ src/substrait/textplan/converter/SaveBinary.cpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/substrait/textplan/PlanPrinterVisitor.cpp b/src/substrait/textplan/PlanPrinterVisitor.cpp index e94e0eff..91585517 100644 --- a/src/substrait/textplan/PlanPrinterVisitor.cpp +++ b/src/substrait/textplan/PlanPrinterVisitor.cpp @@ -1,7 +1,12 @@ /* SPDX-License-Identifier: Apache-2.0 */ #include "substrait/textplan/PlanPrinterVisitor.h" + +#ifdef _WIN32 +#include +#else #include +#endif #include #include diff --git a/src/substrait/textplan/converter/SaveBinary.cpp b/src/substrait/textplan/converter/SaveBinary.cpp index d4cde817..165ef534 100644 --- a/src/substrait/textplan/converter/SaveBinary.cpp +++ b/src/substrait/textplan/converter/SaveBinary.cpp @@ -7,8 +7,14 @@ #include #include #include + +#ifdef _WIN32 +#include +#else #include #include +#endif + #include #include "substrait/proto/plan.pb.h"