Skip to content

Commit

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

#if defined(GNUC) && GNUC < 9
#include <type_traits>
#else
#include <bit>
#endif

#define MAX_UVLC_LEADING_ZEROS 20

Expand Down
5 changes: 5 additions & 0 deletions libheif/codecs/uncompressed/decoder_abstract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
#include <iostream>
#include <cassert>
#include <utility>

#if defined(GNUC) && GNUC < 9
#include <type_traits>
#else
#include <bit>
#endif

#include "common_utils.h"
#include "context.h"
Expand Down

0 comments on commit c057050

Please sign in to comment.