X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdebug.cpp;h=8c02f1d6b00ad54a403b13b72afd2c1c575e8c7f;hb=9e4e7072da8f565eef37da7558053a436b9cbba3;hp=278902a081b7fa2836063ace205771cbbcd4c871;hpb=04e9a9d5410a151d232a577b46791d2edffba527;p=oweals%2Fminetest.git diff --git a/src/debug.cpp b/src/debug.cpp index 278902a08..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