]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
cd32_fmv: include libmpeg2 headers as C
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 02:59:04 +0000 (19:59 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 04:12:31 +0000 (21:12 -0700)
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

index fc4cbbdaa685b048721d930409e5750cb4c6b07d..b2e25fca1a35eb3c93c0b1268a1bd9eb12b03d07 100644 (file)
 #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