0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-09 21:35:36 +00:00
Files
termux-packages/packages/libncnn/src_platform.h.in.patch
Jia Yuan Lo c40a52499a fix(main/libcnn): add patches
Fix build issues around C++14 and unknown type name FILE
2023-07-09 23:16:23 +08:00

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