From b6b611aa8287ddc7e9ef0e13b17f1f7cd9927031 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 1 Jul 2022 13:16:21 +0300 Subject: [PATCH] v: support better separation of general Android vs Termux specific code (part 2) --- vlib/gg/{gg_android.c.v => gg_android_outside_termux.c.v} | 0 vlib/os/os.v | 6 +++--- vlib/os/{os_android.c.v => os_android_outside_termux.c.v} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename vlib/gg/{gg_android.c.v => gg_android_outside_termux.c.v} (100%) rename vlib/os/{os_android.c.v => os_android_outside_termux.c.v} (100%) diff --git a/vlib/gg/gg_android.c.v b/vlib/gg/gg_android_outside_termux.c.v similarity index 100% rename from vlib/gg/gg_android.c.v rename to vlib/gg/gg_android_outside_termux.c.v diff --git a/vlib/os/os.v b/vlib/os/os.v index 3d161dc579..b942b3437a 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -343,9 +343,9 @@ pub fn user_os() string { $if android { return 'android' } - // $if termux { - // return 'termux' - // } + $if termux { + return 'termux' + } $if solaris { return 'solaris' } diff --git a/vlib/os/os_android.c.v b/vlib/os/os_android_outside_termux.c.v similarity index 100% rename from vlib/os/os_android.c.v rename to vlib/os/os_android_outside_termux.c.v