aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2011-09-02 08:40:48 -0500
committerTom Gall <tom.gall@linaro.org>2011-09-02 08:40:48 -0500
commitb5c2c6f05b5df0ade28bdce9bd0f877783eab569 (patch)
tree364787a95d81305f5e0f9dbda6023dfd3f5a3eda
parent29f958a1f73d139a05b914f361fdb25b420db85b (diff)
when ANDROID is defined, also define ANDROID_RGB, essential for external users such as skia
-rw-r--r--jmorecfg.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/jmorecfg.h b/jmorecfg.h
index a1fb8c8..1144d65 100644
--- a/jmorecfg.h
+++ b/jmorecfg.h
@@ -11,6 +11,17 @@
* optimizations. Most users will not need to touch this file.
*/
+/*
+ * When we're building for android, turn on ANDROID_RGB by default.
+ * This is needed for components like skia which make use of the
+ * new encodings defined behind ANDROID_RBG. It's not a reasonable
+ * config to have ANDROID_RBG off.
+ */
+#ifdef ANDROID
+#ifndef ANDROID_RGB
+#define ANDROID_RGB
+#endif
+#endif
/*
* Define BITS_IN_JSAMPLE as either