From: Stefan Reinauer Date: Sun, 31 May 2026 02:59:04 +0000 (-0700) Subject: cd32_fmv: include libmpeg2 headers as C X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ec31ec9d8edea4f8b71debf0f74f0a4fe052cecd;p=francis%2Fwinuae.git 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. --- 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