Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/libwebp/webp/config.h

Issue 1178013008: Use the upstream version of libwebp, v0.4.3. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove README, put more info in config.h Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/BadIcoTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libwebp/webp/config.h
diff --git a/third_party/libwebp/webp/config.h b/third_party/libwebp/webp/config.h
new file mode 100644
index 0000000000000000000000000000000000000000..62ade94d2af2a29be0a79c55271c6c42f017867b
--- /dev/null
+++ b/third_party/libwebp/webp/config.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2015 Google, Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+// FIXME: Workaround for skbug.com/4037
+// Some of our test machines have an older version of clang that does not
+// have
+// __builtin_bswap16
+//
+// But libwebp expects the builtin. We can change that by using this config.h
+// file, which replaces the checks in endian_inl.h to decide whether we have
+// particular builtins.
+
+#ifdef __builtin_bswap64(x)
+ #define HAVE_BUILTIN_BSWAP64
+#endif
+
+#ifdef __builtin_bswap32(x)
+ #define HAVE_BUILTIN_BSWAP32
+#endif
+
+#ifdef __builtin_bswap16(x)
+ #define HAVE_BUILTIN_BSWAP16
+#endif
« no previous file with comments | « tests/BadIcoTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698