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-12-23 11:38:02 -0600
commit589345700e14abba65bc05bbb4da3ac81320fb7a (patch)
tree72845bc05273af7ceb351223c71b689f6fa1a743
parent85a40bafc8027f84181768b2ad86b6119bbb78b9 (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 c3d27d9..0b3613c 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