review: replace external declaration with NDK header file

This commit is contained in:
zhou.weiguo 2024-06-05 21:10:59 +08:00
parent 9c872cbbce
commit 926a8661f3
No known key found for this signature in database
GPG key ID: 952EA81D18BB2FA8

View file

@ -50,6 +50,9 @@
#include "ggml-backend-impl.h" #include "ggml-backend-impl.h"
#if (defined __ANDROID__) || (defined ANDROID)
#include <android/log.h>
#endif
// ================================================================================================= // =================================================================================================
// //
@ -58,11 +61,6 @@
// ================================================================================================= // =================================================================================================
class qnn_instance; class qnn_instance;
#if (defined __ANDROID__) || (defined ANDROID)
extern "C" int __android_log_print(int prio, const char * tag, const char * fmt, ...)
__attribute__((__format__(printf, 3, 4)));
#endif
static void ggml_qnn_log_internal(ggml_log_level level, const char * file, const char * func, int line, const char * format, ...); static void ggml_qnn_log_internal(ggml_log_level level, const char * file, const char * func, int line, const char * format, ...);