summaryrefslogtreecommitdiffhomepage
path: root/tunnel/tools/ndk-compat/compat.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-03-23 23:52:00 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-03-23 23:52:00 +0100
commitaec8c4992511217a80dbb441d27fd480ca3f0e3a (patch)
tree53e89d8987d1954b2af99787b30b38980080ed92 /tunnel/tools/ndk-compat/compat.c
parent5742cd19f34584c4eda11f2a40ff3c41474ea340 (diff)
parent46ec3315b502680f3e30758b0849b5f3a143c9c6 (diff)
Merge remote-tracking branch 'origin/master' into version
Diffstat (limited to 'tunnel/tools/ndk-compat/compat.c')
-rw-r--r--tunnel/tools/ndk-compat/compat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnel/tools/ndk-compat/compat.c b/tunnel/tools/ndk-compat/compat.c
index 596dbd81..2c54c086 100644
--- a/tunnel/tools/ndk-compat/compat.c
+++ b/tunnel/tools/ndk-compat/compat.c
@@ -1,12 +1,12 @@
/* SPDX-License-Identifier: BSD
*
- * Copyright © 2017-2021 WireGuard LLC. All Rights Reserved.
+ * Copyright © 2017-2023 WireGuard LLC. All Rights Reserved.
*
*/
#define FILE_IS_EMPTY
-#if defined(__ANDROID_API__) && __ANDROID_API__ < 18
+#if defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 18
#undef FILE_IS_EMPTY
#include <stdio.h>
#include <stdlib.h>
@@ -58,7 +58,7 @@ 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
#undef FILE_IS_EMPTY
#include <string.h>