summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-17 07:01:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-17 07:01:49 -0700
commita937b2bb1f550766e96b8b8994d7fdc4580bdf13 (patch)
treecae04ee6f368554d773808e57ee53a7c11665722 /configure
parent22774201563c6ef587898891419b49b3c809fb93 (diff)
downloadtxr-a937b2bb1f550766e96b8b8994d7fdc4580bdf13.tar.gz
txr-a937b2bb1f550766e96b8b8994d7fdc4580bdf13.tar.bz2
txr-a937b2bb1f550766e96b8b8994d7fdc4580bdf13.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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"