From a937b2bb1f550766e96b8b8994d7fdc4580bdf13 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 17 Jun 2021 07:01:49 -0700 Subject: android: fix compiler noise about __ANDROID_API__ * configure: Termux's gcc now defines __ANDROID_API__ which clashes with our definition. We cannot remove our definition because Termux's uses a uselessly low, conservative value. Thus, add a -U to undefine it before our -D redefinition. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 048407d3..81932bc1 100755 --- a/configure +++ b/configure @@ -1159,7 +1159,7 @@ if ! [ $darwin_target ] ; then if [ "$($make conftest.android)" = "yes" ] ; then printf "yes\n" android_target=y - lang_flags="$lang_flags -D__ANDROID_API__=65535 -D_BSD_SOURCE" + lang_flags="$lang_flags -U__ANDROID_API__ -D__ANDROID_API__=65535 -D_BSD_SOURCE" printf "Regenerating config.make ..." gen_config_make printf "done\n" -- cgit v1.2.3