Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ANDROID] Fix Clang Compiling #1094

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/emu/x64runf30f.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr)
x64emu_t*emu = test->emu;
#endif

#ifdef TERMUX
extern int isinff(float);
extern int isnanf(float);
#endif

opcode = F8;

switch(opcode) {
Expand Down
8 changes: 8 additions & 0 deletions src/libtools/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,13 @@ EXPORT int my_pthread_attr_getguardsize(x64emu_t* emu, pthread_attr_t* attr, siz
(void)emu;
return pthread_attr_getguardsize(getAlignedAttr(attr), size);
}
#ifndef TERMUX
EXPORT int my_pthread_attr_getinheritsched(x64emu_t* emu, pthread_attr_t* attr, int* sched)
{
(void)emu;
return pthread_attr_getinheritsched(getAlignedAttr(attr), sched);
}
#endif
EXPORT int my_pthread_attr_getschedparam(x64emu_t* emu, pthread_attr_t* attr, void* param)
{
(void)emu;
Expand Down Expand Up @@ -398,11 +400,13 @@ EXPORT int my_pthread_attr_setguardsize(x64emu_t* emu, pthread_attr_t* attr, siz
(void)emu;
return pthread_attr_setguardsize(getAlignedAttr(attr), size);
}
#ifndef TERMUX
EXPORT int my_pthread_attr_setinheritsched(x64emu_t* emu, pthread_attr_t* attr, int sched)
{
(void)emu;
return pthread_attr_setinheritsched(getAlignedAttr(attr), sched);
}
#endif
EXPORT int my_pthread_attr_setschedparam(x64emu_t* emu, pthread_attr_t* attr, void* param)
{
(void)emu;
Expand Down Expand Up @@ -808,6 +812,7 @@ EXPORT int my_pthread_mutexattr_getkind_np(x64emu_t* emu, my_mutexattr_t *attr,
attr->x86 = mattr.x86;
return ret;
}
#ifndef TERMUX
EXPORT int my_pthread_mutexattr_getprotocol(x64emu_t* emu, my_mutexattr_t *attr, void* p)
{
my_mutexattr_t mattr = {0};
Expand All @@ -816,6 +821,7 @@ EXPORT int my_pthread_mutexattr_getprotocol(x64emu_t* emu, my_mutexattr_t *attr,
attr->x86 = mattr.x86;
return ret;
}
#endif
EXPORT int my_pthread_mutexattr_gettype(x64emu_t* emu, my_mutexattr_t *attr, void* p)
{
my_mutexattr_t mattr = {0};
Expand Down Expand Up @@ -852,6 +858,7 @@ EXPORT int my_pthread_mutexattr_setkind_np(x64emu_t* emu, my_mutexattr_t *attr,
attr->x86 = mattr.x86;
return ret;
}
#ifndef TERMUX
EXPORT int my_pthread_mutexattr_setprotocol(x64emu_t* emu, my_mutexattr_t *attr, int p)
{
my_mutexattr_t mattr = {0};
Expand All @@ -860,6 +867,7 @@ EXPORT int my_pthread_mutexattr_setprotocol(x64emu_t* emu, my_mutexattr_t *attr,
attr->x86 = mattr.x86;
return ret;
}
#endif
EXPORT int my_pthread_mutexattr_setpshared(x64emu_t* emu, my_mutexattr_t *attr, int p)
{
my_mutexattr_t mattr = {0};
Expand Down