Chromium Code Reviews

Unified Diff: webrtc/BUILD.gn

Issue 1321193003: Android: Enable C99 mode instead of C89 (default). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix comment Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | webrtc/build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/BUILD.gn
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
index 40368597b22dc5cab2ef3215c8d6bd8159defd64..56d06cf1291d66684004a03dc4441a967f9b014a 100644
--- a/webrtc/BUILD.gn
+++ b/webrtc/BUILD.gn
@@ -154,14 +154,18 @@ config("common_config") {
}
if (is_android && !is_clang) {
- # The Android NDK doesn"t provide optimized versions of these
- # functions. Ensure they are disabled for all compilers.
cflags += [
+ # The Android NDK doesn't provide optimized versions of these
+ # functions. Ensure they are disabled for all compilers.
"-fno-builtin-cos",
"-fno-builtin-sin",
"-fno-builtin-cosf",
"-fno-builtin-sinf",
]
+ cflags_c = [
+ # Use C99 mode instead of C89 (default).
+ "-std=c99",
+ ]
}
}
« no previous file with comments | « no previous file | webrtc/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine