diff --git a/libheif/bitstream.cc b/libheif/bitstream.cc index 4e26c39c39..a79a5b7629 100644 --- a/libheif/bitstream.cc +++ b/libheif/bitstream.cc @@ -19,13 +19,12 @@ */ #include "bitstream.h" - #include #include #include -#define GCC_COMPILER (defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(__PGI)) -#if (defined(GCC_COMPILER) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10) + +#if ((defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(__PGI)) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10) #include #else #include