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:
Andrew Hsieh
2013-12-04 11:55:17 +08:00
parent 2a571fda2b
commit b05e7c1985

View File

@@ -1138,7 +1138,7 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*);
#define JNIIMPORT
#define JNIEXPORT __attribute__ ((visibility ("default")))
#define JNICALL
#define JNICALL __NDK_FPABI__
/*
* Prototypes for functions exported by loadable shared libs. These are