summaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'user.c')
-rw-r--r--user.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/user.c b/user.c
index f01497d..c40c2e9 100644
--- a/user.c
+++ b/user.c
@@ -1,3 +1,10 @@
+#ifdef DEBUG
+#ifdef __ANDROID__
+#include <android/log.h>
+#else
+#include <stdio.h>
+#endif
+#endif
#include <stdlib.h>
#include <stdbool.h>
#include "post.h"
@@ -187,13 +194,13 @@ static size_t show_handler(void *contents, size_t size, size_t nmemb
} while ((line = strtok_r(NULL, "\n", &linesaveptr)));
} else {
#ifdef DEBUG
-#ifdef ANDROID
- __android_log_print(ANDROID_LOG_INFO, "librtclient"
- , "%s response status:\n%s", __func__, line);
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_INFO, "librtclient",
+ "%s response status:\n%s", __func__, line);
#else
printf("%s response status:\n%s\n", __func__, line);
-#endif // ANDROID
-#endif // DEBUG
+#endif
+#endif
}
return realsize;