OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Fix build with protobuf >= 27 (#27510)
Michael Cho103c3b722596
diff --git a/src/frontends/onnx/frontend/src/frontend.cpp b/src/frontends/onnx/frontend/src/frontend.cppindex 5ad28be3654..5296e5b1b7a 100644--- a/src/frontends/onnx/frontend/src/frontend.cpp+++ b/src/frontends/onnx/frontend/src/frontend.cpp@@ -3,6 +3,9 @@//#include <google/protobuf/port_def.inc>+#ifndef PROTOBUF_VERSION+# include <google/protobuf/runtime_version.h>+#endif#if PROTOBUF_VERSION >= 4022000 // protobuf 4.22# define OV_PROTOBUF_ABSL_IS_USED#endifdiff --git a/src/frontends/paddle/src/frontend.cpp b/src/frontends/paddle/src/frontend.cppindex 163b4d894cb..2f2ca72418e 100644--- a/src/frontends/paddle/src/frontend.cpp+++ b/src/frontends/paddle/src/frontend.cpp@@ -5,6 +5,9 @@#include "openvino/frontend/paddle/frontend.hpp"#include <google/protobuf/port_def.inc>+#ifndef PROTOBUF_VERSION+# include <google/protobuf/runtime_version.h>+#endif#if PROTOBUF_VERSION >= 4022000 // protobuf 4.22# define OV_PROTOBUF_ABSL_IS_USED#endif