external/neven shouldn't depend on android_runtime.
Use jniRegisterNativeMethods from libnativehelper
instead of AndroidRuntime::registerNativeMethods. I
have no idea why the latter is a public API to
begin with.
Came across this while diagnosing why this module
doesn't build on LP64.
Change-Id: I5220e942259903a2dbc986d7b48f436362badcfe
diff --git a/FaceDetector_jni.cpp b/FaceDetector_jni.cpp
index 414b117..ca2786a 100644
--- a/FaceDetector_jni.cpp
+++ b/FaceDetector_jni.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
@@ -27,7 +28,6 @@
#include "jni.h"
#include "JNIHelp.h"
-#include "android_runtime/AndroidRuntime.h"
using namespace android;
@@ -288,8 +288,7 @@
int register_android_media_FaceDetector(JNIEnv *_env)
{
- return android::AndroidRuntime::registerNativeMethods(
- _env, classPathName, methods, NELEM(methods));
+ return jniRegisterNativeMethods(_env, classPathName, methods, NELEM(methods));
}
// ---------------------------------------------------------------------------