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

Unified Diff: third_party/mesa/mesa.gyp

Issue 1226583002: clang/win: Build chromium code without -Wno-incompatible-pointer-types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-logical-op-parentheses
Patch Set: rebase 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
Index: third_party/mesa/mesa.gyp
diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp
index 58c25d2ecf62df85c1766855045d83a925ef662b..870b135f58d8b852eb504c79492695d0063a02e6 100644
--- a/third_party/mesa/mesa.gyp
+++ b/third_party/mesa/mesa.gyp
@@ -650,6 +650,10 @@
'defines': [
# Because we're building as a static library
'_GLAPI_NO_EXPORTS',
+ # Generated files use const only if __cplusplus or __STDC__ is
+ # defined. On Windows, neither is defined, so define YY_USE_CONST
+ # to explicitly enable const.
+ 'YY_USE_CONST',
],
}],
],

Powered by Google App Engine
This is Rietveld 408576698