summaryrefslogtreecommitdiffstats
path: root/skia/skia.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r--skia/skia.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp
index c627925..20e593d 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',