diff options
| author | Young-il Choi <duddlf.choi@samsung.com> | 2013-05-04 16:00:11 +0900 |
|---|---|---|
| committer | Young-il Choi <duddlf.choi@samsung.com> | 2013-05-04 16:00:11 +0900 |
| commit | 7ac657116343c599806e733c2caf896681ab3bd1 (patch) | |
| tree | 1e63a4b1b15f3c1ffeb0474c9b703a6e7db70204 /src/rt/rust_android_dummy.cpp | |
| parent | c3ab74b8b933a1bc2c5f207ae5c023cf3e7aeb58 (diff) | |
| download | rust-7ac657116343c599806e733c2caf896681ab3bd1.tar.gz rust-7ac657116343c599806e733c2caf896681ab3bd1.zip | |
rt: glob, globfree dummy function for android
Diffstat (limited to 'src/rt/rust_android_dummy.cpp')
| -rw-r--r-- | src/rt/rust_android_dummy.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/rt/rust_android_dummy.cpp b/src/rt/rust_android_dummy.cpp index 3c7034a2f95..0032e9c6e7f 100644 --- a/src/rt/rust_android_dummy.cpp +++ b/src/rt/rust_android_dummy.cpp @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#ifdef __ANDROID__ + #include "rust_android_dummy.h" #include <math.h> #include <errno.h> -#ifdef __ANDROID__ - int backtrace(void **array, int size) { return 0; } char **backtrace_symbols(void *const *array, int size) { return 0; } @@ -59,7 +59,18 @@ extern "C" void srand() extern "C" void atof() { } + extern "C" void tgammaf() { } + +extern "C" int glob(const char *pattern, int flags, int (*errfunc) (const char *epath, int eerrno), glob_t *pglob) +{ + return 0; +} + +extern "C" void globfree(glob_t *pglob) +{ +} + #endif |
