diff options
author | Patrick Northon | 2020-09-24 14:13:55 -0400 |
---|---|---|
committer | Patrick Northon | 2020-09-24 14:13:55 -0400 |
commit | 004ae3ab92a08cef0eb761b87338b5ac2d0e20fe (patch) | |
tree | 3705b8debcc825a0f11e8eb58bcca8a35bba54cd /fix-missing-inline.patch | |
parent | f24d1f3d91ffe5e6977d902192a263353d71444c (diff) | |
download | aur-004ae3ab92a08cef0eb761b87338b5ac2d0e20fe.tar.gz |
Add fix for missing inline.
Diffstat (limited to 'fix-missing-inline.patch')
-rw-r--r-- | fix-missing-inline.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/fix-missing-inline.patch b/fix-missing-inline.patch new file mode 100644 index 000000000000..fc21d08febc1 --- /dev/null +++ b/fix-missing-inline.patch @@ -0,0 +1,38 @@ +diff --git a/libheif/heif_cxx.h b/libheif/heif_cxx.h +index e05a730..c19199f 100644 +--- a/libheif/heif_cxx.h ++++ b/libheif/heif_cxx.h +@@ -898,7 +898,7 @@ namespace heif { + } + + // throws Error +- ColorProfile_nclx Image::get_nclx_color_profile() const ++ inline ColorProfile_nclx Image::get_nclx_color_profile() const + { + heif_color_profile_nclx* nclx = nullptr; + Error err = Error(heif_image_get_nclx_color_profile(m_image.get(), &nclx)); +@@ -910,13 +910,13 @@ namespace heif { + } + + +- heif_color_profile_type Image::get_color_profile_type() const ++ inline heif_color_profile_type Image::get_color_profile_type() const + { + return heif_image_get_color_profile_type(m_image.get()); + } + + // throws Error +- std::vector<uint8_t> Image::get_raw_color_profile() const ++ inline std::vector<uint8_t> Image::get_raw_color_profile() const + { + auto size = heif_image_get_raw_color_profile_size(m_image.get()); + std::vector<uint8_t> profile(size); +@@ -924,7 +924,7 @@ namespace heif { + return profile; + } + +- void Image::set_raw_color_profile(heif_color_profile_type type, ++ inline void Image::set_raw_color_profile(heif_color_profile_type type, + const std::vector<uint8_t>& data) + { + const char* profile_type = nullptr; |