Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
74d0df73
Commit
74d0df73
authored
Oct 15, 2015
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix: Allow to build against Android down to 1.5.
Bionic libc in Android 1.5 missed log2() and nan() functions.
parent
d7e3b36a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
unix/mpconfigport.h
unix/mpconfigport.h
+10
-0
No files found.
unix/mpconfigport.h
View file @
74d0df73
...
...
@@ -198,6 +198,16 @@ void mp_unix_mark_exec(void);
#define MICROPY_PLAT_DEV_MEM (1)
#endif
#ifdef __ANDROID__
#include <android/api-level.h>
#if __ANDROID_API__ < 4
// Bionic libc in Android 1.5 misses these 2 functions
// 1.442695040888963407354163704 is 1/_M_LN2
#define log2(x) (log(x) * 1.442695040888963407354163704)
#define nan(x) NAN
#endif
#endif
extern
const
struct
_mp_obj_fun_builtin_t
mp_builtin_input_obj
;
extern
const
struct
_mp_obj_fun_builtin_t
mp_builtin_open_obj
;
#define MICROPY_PORT_BUILTINS \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment