From 4aa4843b7431344d81e1e7c7713a20e1834b0e46 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 22 Mar 2023 14:26:39 +0100 Subject: tools: use __ANDROID_MIN_SDK_VERSION__ instead of __ANDROID_API__ The latter is deprecated. Signed-off-by: Jason A. Donenfeld --- tunnel/tools/ndk-compat/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tunnel/tools/ndk-compat/compat.h') diff --git a/tunnel/tools/ndk-compat/compat.h b/tunnel/tools/ndk-compat/compat.h index 73cce668..32f6d799 100644 --- a/tunnel/tools/ndk-compat/compat.h +++ b/tunnel/tools/ndk-compat/compat.h @@ -4,13 +4,13 @@ * */ -#if defined(__ANDROID_API__) && __ANDROID_API__ < 18 +#if defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 18 #include ssize_t getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp); ssize_t getline(char **buf, size_t *bufsiz, FILE *fp); #endif -#if defined(__ANDROID_API__) && __ANDROID_API__ < 24 +#if defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 24 char *strchrnul(const char *s, int c); #endif -- cgit v1.2.3