Skip to content

Commit

Permalink
ndk-sysroot-gcc-compact: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 committed Dec 13, 2023
1 parent cb44214 commit f8ead98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ but this breaks compile on gcc-9, gcc-10 and gcc-11.
namespace __adl_only {
// Those cause ADL to trigger but they are not viable candidates,
// so they are never actually selected.
+#if defined(__GNUC__) && __GNUC__ < 12
+#if defined(_LIBCPP_COMPILER_GCC) && __GNUC__ < 12
+ void make_error_condition();
+ void make_error_code();
+#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GCC doesn't have proper support for CWG 1315 until commit [2], which is landed i
};
*/

+#if defined(__GNUC__) && __GNUC__ < 12
+#if defined(_LIBCPP_COMPILER_GCC) && __GNUC__ < 12
+
+template <class _Tp, class = void>
+struct __has_specialization : false_type {};
Expand Down
2 changes: 1 addition & 1 deletion tur/ndk-sysroot-gcc-compact/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@licy183"
# Version should be equal to TERMUX_NDK_{VERSION_NUM,REVISION} in
# scripts/properties.sh
TERMUX_PKG_VERSION=26b
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://dl.google.com/android/repository/android-ndk-r${TERMUX_PKG_VERSION}-linux.zip
TERMUX_PKG_SHA256=ad73c0370f0b0a87d1671ed2fd5a9ac9acfd1eb5c43a7fbfbd330f85d19dd632
# This package has taken over <pty.h> from the previous libutil-dev
Expand Down

0 comments on commit f8ead98

Please sign in to comment.