aboutsummaryrefslogtreecommitdiff
path: root/py/nlrx86.c
diff options
context:
space:
mode:
authorASM <cpp.create@gmail.com>2017-09-08 15:01:14 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-09-12 08:55:14 +0300
commit52620c6b0e8a601e49866d0db37abbe217b16a0d (patch)
tree1a27666e2619a9a8cfa794080951264123d6d26d /py/nlrx86.c
parenteea5fcc4428e32f6abd3c5fbf8fa1fe41d206381 (diff)
py/nlrx86: Fix building for Android/x86.
Tested using Clang on self-hosted Termux environment https://termux.com/.
Diffstat (limited to 'py/nlrx86.c')
-rw-r--r--py/nlrx86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nlrx86.c b/py/nlrx86.c
index 8d15d7bab..a5a20f373 100644
--- a/py/nlrx86.c
+++ b/py/nlrx86.c
@@ -55,7 +55,7 @@ unsigned int nlr_push(nlr_buf_t *nlr) {
// by default.
// TODE: Better support for various x86 calling conventions
// (unfortunately, __attribute__((naked)) is not supported on x86).
- #ifndef __ZEPHYR__
+ #if !(defined(__ZEPHYR__) || defined(__ANDROID__))
"pop %ebp \n" // undo function's prelude
#endif
"mov 4(%esp), %edx \n" // load nlr_buf