From 25cf5262dd5bb59722609f16f177d5da55c4cad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 9 May 2025 20:19:27 -0400 Subject: [PATCH] tflite: Make VSI header build in C code Part-of: --- .../ext/tflite/VX/vsi_npu_custom_op.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/tflite/VX/vsi_npu_custom_op.h b/subprojects/gst-plugins-bad/ext/tflite/VX/vsi_npu_custom_op.h index 68194f10c6..05f1175f84 100644 --- a/subprojects/gst-plugins-bad/ext/tflite/VX/vsi_npu_custom_op.h +++ b/subprojects/gst-plugins-bad/ext/tflite/VX/vsi_npu_custom_op.h @@ -30,19 +30,20 @@ typedef struct { char* binary; } TfLiteVsiNpuParams; - #ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - namespace tflite { -namespace ops { -namespace custom { + namespace ops { + namespace custom { +#endif // __cplusplus TfLiteRegistration* Register_VSI_NPU_PRECOMPILED(void); -} // namespace custom -} // namespace ops +#ifdef __cplusplus + } // namespace custom + } // namespace ops } // namespace tflite +} // extern "C" +#endif // __cplusplus + #endif //TENSORFLOW_LITE_DELEGATES_VSI_NPU_CUSTOM_OP_H_