mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-09 21:35:36 +00:00
18 lines
611 B
Diff
18 lines
611 B
Diff
--- a/src/platform.h.in
|
|
+++ b/src/platform.h.in
|
|
@@ -248,13 +248,13 @@ private:
|
|
#endif // __cplusplus
|
|
|
|
#if NCNN_STDIO
|
|
+#include <stdio.h>
|
|
#if NCNN_PLATFORM_API && __ANDROID_API__ >= 8
|
|
#include <android/log.h>
|
|
#define NCNN_LOGE(...) do { \
|
|
fprintf(stderr, ##__VA_ARGS__); fprintf(stderr, "\n"); \
|
|
__android_log_print(ANDROID_LOG_WARN, "ncnn", ##__VA_ARGS__); } while(0)
|
|
#else // NCNN_PLATFORM_API && __ANDROID_API__ >= 8
|
|
-#include <stdio.h>
|
|
#define NCNN_LOGE(...) do { \
|
|
fprintf(stderr, ##__VA_ARGS__); fprintf(stderr, "\n"); } while(0)
|
|
#endif // NCNN_PLATFORM_API && __ANDROID_API__ >= 8
|