diff --git a/cpp/src/parquet/types.h b/cpp/src/parquet/types.h index f3d3abfc918..4529dbe6133 100644 --- a/cpp/src/parquet/types.h +++ b/cpp/src/parquet/types.h @@ -29,6 +29,15 @@ #include "parquet/platform.h" #include "parquet/type_fwd.h" +#ifdef _WIN32 + +// Repetition::OPTIONAL conflicts with a #define, so we undefine it +#ifdef OPTIONAL +#undef OPTIONAL +#endif + +#endif // _WIN32 + namespace arrow { namespace util {