Index: skia/skia.gyp |
diff --git a/skia/skia.gyp b/skia/skia.gyp |
index c6279256462f79cf17ba8ec8a41c59b03cd18c04..20e593da7a42ad8b09465a3c4f907a47794b7137 100644 |
--- a/skia/skia.gyp |
+++ b/skia/skia.gyp |
@@ -592,6 +592,14 @@ |
'../third_party/skia/src/opts/opts_check_SSE2.cpp' |
], |
}], |
+ ['clang==1', { |
+ 'defines': [ |
+ # Remove all use of __restrict__ -- skia uses it incorrectly, |
+ # and clang is more strict about it. |
+ # http://code.google.com/p/skia/issues/detail?id=63 |
+ 'SK_RESTRICT=', |
+ ], |
+ }], |
[ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
'dependencies': [ |
'../build/linux/system.gyp:gdk', |