Annotate JNICALL with __NDK_FPABI__
In armeabi-v7a, VM still expects JNI functions to follow soft-abi. Annotate it with __NDK_FPABI__ so compiler follows soft-abi in JNI functions regardless the presence of -mhard-float in command-line. It's up to developer to apply JNICALL consistently on JNI functions, ie. those functions whose first arg has type "JNIEnv*" is likely to be Change-Id: Ica7cca8ab9498ce00de6ffc7fff35f8cc13aedbf
This commit is contained in:
@@ -1138,7 +1138,7 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*);
|
|||||||
|
|
||||||
#define JNIIMPORT
|
#define JNIIMPORT
|
||||||
#define JNIEXPORT __attribute__ ((visibility ("default")))
|
#define JNIEXPORT __attribute__ ((visibility ("default")))
|
||||||
#define JNICALL
|
#define JNICALL __NDK_FPABI__
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prototypes for functions exported by loadable shared libs. These are
|
* Prototypes for functions exported by loadable shared libs. These are
|
||||||
|
|||||||
Reference in New Issue
Block a user