Skip to content

Commit 628d5f0

Browse files
committed
Adjust AEGIS code for Android
1 parent e680a1d commit 628d5f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/aegis/common/common.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
# if __ANDROID_API__ < 18
2525
# undef HAVE_GETAUXVAL
2626
# endif
27-
# define HAVE_ANDROID_GETCPUFEATURES
27+
# if defined(__clang__) || defined(__GNUC__)
28+
# if __has_include(<cpu-features.h>)
29+
# define HAVE_ANDROID_GETCPUFEATURES
30+
# endif
31+
# endif
2832
#endif
2933
#if defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64)
3034

0 commit comments

Comments
 (0)