Skip to content

Commit

Permalink
use <type_traits> instead of <bit> also for Clang <10 compilers (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 20, 2024
1 parent c057050 commit 11da9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libheif/bitstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <cstring>
#include <cassert>

#if defined(GNUC) && GNUC < 9
#if (defined(__GNUC__) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10)
#include <type_traits>
#else
#include <bit>
Expand Down
2 changes: 1 addition & 1 deletion libheif/codecs/uncompressed/decoder_abstract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <cassert>
#include <utility>

#if defined(GNUC) && GNUC < 9
#if (defined(__GNUC__) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10)
#include <type_traits>
#else
#include <bit>
Expand Down

0 comments on commit 11da9e4

Please sign in to comment.