summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-06 18:55:50 +0000
committerRobin Watts <robin.watts@artifex.com>2012-01-06 18:55:50 +0000
commit1ef1a581229dfc0b0466600bb8bc01b3109be02f (patch)
tree56e847973641a7c35d1b266da0599810e4e8182d /fitz/fitz.h
parentd6fab6582c26c133589c83134e76e7a29ff57962 (diff)
downloadmupdf-1ef1a581229dfc0b0466600bb8bc01b3109be02f.tar.xz
Android tweaks.
Include android headers in fitz.h so we can debug. Arrange for error throwing to output to android error stream as well as stderr. Change jpeg library to not use backing store. Solves bug 692473.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index fe0e4d6b..a5695d56 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -22,6 +22,16 @@
#include "memento.h"
+#ifdef __ANDROID__
+#include <android/log.h>
+#define LOG_TAG "libmupdf"
+#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
+#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
+#else
+#define LOGI(...) do {} while(0)
+#define LOGE(...) do {} while(0)
+#endif
+
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
#define ABS(x) ( (x) < 0 ? -(x) : (x) )