This library contains code that extends and simplifies different operations
for C language based programs.
Revisión | a3b84232303f8358717dc48d19120c1324bae8aa (tree) |
---|---|
Tiempo | 2022-08-30 08:16:46 |
Autor | Sergey Gusarov <laborer2008@gmai...> |
Commiter | Sergey Gusarov |
Fixed android NDK compile errors
@@ -29,7 +29,11 @@ | ||
29 | 29 | * We could include unistd.h for symlink() but on some systems(i.e. Gentoo 2015) |
30 | 30 | * symlink woudn't get linked |
31 | 31 | */ |
32 | +# if defined(CT_OS_ANDROID) | |
33 | +extern int symlink(const char *, const char *); | |
34 | +# else | |
32 | 35 | extern CT_SHARED_API int symlink(const char* __from, const char* __to) __THROW __nonnull((1, 2)) __wur; |
36 | +# endif | |
33 | 37 | |
34 | 38 | # endif |
35 | 39 |
@@ -36,7 +36,11 @@ | ||
36 | 36 | * We could include stdlib.h for realpath() but on some systems(i.e. Ubuntu 14.04) |
37 | 37 | * stdlib.h(->features.h) undefines everything |
38 | 38 | */ |
39 | +# if defined(CT_OS_ANDROID) | |
40 | +extern char * realpath(const char *path, char *resolved); | |
41 | +# else | |
39 | 42 | extern char* realpath(const char* __restrict __name, char* __restrict __resolved) __THROW __wur; |
43 | +# endif | |
40 | 44 | |
41 | 45 | char* getAbsolutePath(const char* const path, char* resolvedPath, const size_t bufferSize) CT_NOEXCEPT |
42 | 46 | { |