From c057050d4f7a94d92d8a2e3255c2c86f47afba60 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Tue, 19 Nov 2024 21:34:28 +0100 Subject: [PATCH] use instead of for GCC <9 compilers (#1398) --- libheif/bitstream.cc | 5 +++++ libheif/codecs/uncompressed/decoder_abstract.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/libheif/bitstream.cc b/libheif/bitstream.cc index 9063718179..e31784aca2 100644 --- a/libheif/bitstream.cc +++ b/libheif/bitstream.cc @@ -23,7 +23,12 @@ #include #include #include + +#if defined(GNUC) && GNUC < 9 +#include +#else #include +#endif #define MAX_UVLC_LEADING_ZEROS 20 diff --git a/libheif/codecs/uncompressed/decoder_abstract.cc b/libheif/codecs/uncompressed/decoder_abstract.cc index bbe469204e..60993e3bd3 100644 --- a/libheif/codecs/uncompressed/decoder_abstract.cc +++ b/libheif/codecs/uncompressed/decoder_abstract.cc @@ -23,7 +23,12 @@ #include #include #include + +#if defined(GNUC) && GNUC < 9 +#include +#else #include +#endif #include "common_utils.h" #include "context.h"