mirror of https://git.sr.ht/~rabbits/uxn
android: replace fprintf with android logging
This commit is contained in:
parent
c541d4f56b
commit
e0642b6091
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue