From ec31ec9d8edea4f8b71debf0f74f0a4fe052cecd Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 30 May 2026 19:59:04 -0700 Subject: [PATCH] cd32_fmv: include libmpeg2 headers as C The external libmpeg2 headers declare a C API. Wrap them in extern "C" when they are included from C++ so the CD32 FMV decoder links against the library's C symbols. --- cd32_fmv.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cd32_fmv.cpp b/cd32_fmv.cpp index fc4cbbda..b2e25fca 100644 --- a/cd32_fmv.cpp +++ b/cd32_fmv.cpp @@ -25,8 +25,14 @@ #include "archivers/mp2/kjmp2.h" #ifdef WITH_LIBMPEG2 +#ifdef __cplusplus +extern "C" { +#endif #include "mpeg2.h" #include "mpeg2convert.h" +#ifdef __cplusplus +} +#endif #endif #define FMV_DEBUG 0 -- 2.47.3