X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdebug.cpp;h=8c02f1d6b00ad54a403b13b72afd2c1c575e8c7f;hb=9e4e7072da8f565eef37da7558053a436b9cbba3;hp=b5bf3f705b772d5a923a31a300adf7c7bb7ef773;hpb=d308352dbd4121d12d4f44d591463468c09d37f9;p=oweals%2Fminetest.git diff --git a/src/debug.cpp b/src/debug.cpp index b5bf3f705..8c02f1d6b 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc., */ +#include "porting.h" #include "debug.h" #include "exceptions.h" #include "threads.h" @@ -27,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "jthread/jmutex.h" #include "jthread/jmutexautolock.h" - +#include "config.h" /* Debug output */ @@ -95,6 +96,9 @@ public: } std::streamsize xsputn(const char *s, std::streamsize n) { +#ifdef __ANDROID__ + __android_log_print(ANDROID_LOG_VERBOSE, PROJECT_NAME, "%s", s); +#endif for(int i=0; i