From a0cf9c4c5f2b27cf2092ae9c25e59584b1ee8104 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Sun, 22 Sep 2024 23:51:44 +0200 Subject: [PATCH] compile heifio subs with C linkage --- heifio/stubs.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heifio/stubs.cc b/heifio/stubs.cc index b1facb614a..a20317c250 100644 --- a/heifio/stubs.cc +++ b/heifio/stubs.cc @@ -27,6 +27,7 @@ #include "libheif/heif.h" #include "decoder.h" +extern "C" { #if !HAVE_LIBJPEG heif_error loadJPEG(const char *filename, InputImage *input_image) @@ -62,3 +63,5 @@ heif_error loadTIFF(const char *filename, InputImage *input_image) return err; } #endif + +}