Skip to content

Commit

Permalink
build: Use __GNUC__ instead of __GNUC_PREREQ, fixes Alpine build
Browse files Browse the repository at this point in the history
Changelog-Fixed: build: Use `__GNUC__` instead of `__GNUC_PREREQ`, fixes Alpine build ([#178])
  • Loading branch information
ksedgwic committed Sep 22, 2023
1 parent fdaeea7 commit 4f37007
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Util/Compiler.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#ifndef COMPILER_H_
#define COMPILER_H_

#ifdef __GNUC__
#include <features.h>
#if defined(__GNUC__) && (__GNUC__ >= 13)
// We need a GCC patch here due the following bug
// <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107134>
#if __GNUC_PREREQ(13,0)
#include<cstdint>
#endif
#endif


#endif // COMPILER_H_

0 comments on commit 4f37007

Please sign in to comment.