summaryrefslogtreecommitdiffhomepage
path: root/app/tools/ndk-compat/compat.h
blob: 3ddf911aeb7c9bb608a756c22431e70c3c34bee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: BSD
 *
 * Copyright © 2017-2018 WireGuard LLC. All Rights Reserved.
 *
 */

#if defined(__ANDROID_API__) && __ANDROID_API__ < 18
#include <stdio.h>
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
char *strchrnul(const char *s, int c);
#endif