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

fixed abs() compilation for Android classpath on OSX #441

Merged
merged 2 commits into from
Jun 24, 2015
Merged
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
6 changes: 5 additions & 1 deletion src/classpath-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
There is NO WARRANTY for this software. See license.txt for
details. */

#include <cmath>
using namespace std;

struct JavaVM;
struct _JavaVM;
struct _JNIEnv;
Expand Down Expand Up @@ -1206,7 +1209,8 @@ extern "C" AVIAN_EXPORT int64_t JNICALL
extern "C" AVIAN_EXPORT int64_t JNICALL
Avian_java_lang_Math_abs__J(Thread*, object, uintptr_t* arguments)
{
return llabs(arguments[0]);
int64_t v; memcpy(&v, arguments, 8);
return llabs(v);
}

extern "C" AVIAN_EXPORT int64_t JNICALL
Expand Down