android: replace fprintf with android logging

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-27 20:16:26 +01:00
parent c541d4f56b
commit e0642b6091
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,15 @@
#include <time.h>
#include "uxn.h"
#ifdef __ANDROID__
#include <android/log.h>
#undef stdout
#undef stderr
#define stdout ANDROID_LOG_VERBOSE
#define stderr ANDROID_LOG_VERBOSE
#define fprintf(f, ...) __android_log_print(f, "Uxn", __VA_ARGS__)
#endif
#pragma GCC diagnostic push
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"