Skip to content

Commit

Permalink
fix compiler check
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 23, 2024
1 parent 2fcf8a2 commit 4da41fe
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions libheif/bitstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,16 @@
* along with libheif. If not, see <http://www.gnu.org/licenses/>.
*/

#if defined(__GNUC__)
test1 test1 ...
#endif

#include "bitstream.h"

#if defined(__GNUC__)
test2 test2 ...
#endif

#include <utility>

#if defined(__GNUC__)
test3 test3 ...
#endif

#include <cstring>

#if defined(__GNUC__)
test4 test4 ...
#endif

#include <cassert>

#if defined(__GNUC__)
test5 test5 ...
#endif


#define GCC_COMPILER (defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(__PGI))
#if (defined(GCC_COMPILER) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10)
__GNUC__ aaa bbb ...
#if ((GCC_COMPILER) && __GNUC__ < 9) || (defined(__clang__) && __clang_major__ < 10)
#include <type_traits>
#else
__clang__ ccc ddd ...
#include <bit>
#endif

Expand Down

0 comments on commit 4da41fe

Please sign in to comment.