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: build/config/nacl/BUILD.gn

Issue 1408273003: GN: nacl_defines: Drop _BSD_SOURCE, _DEFAULT_SOURCE; conditionalize on OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: conditionalize on os; no _DARWIN_C_SOURCE Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/nacl/BUILD.gn
diff --git a/build/config/nacl/BUILD.gn b/build/config/nacl/BUILD.gn
index 51ebabd79a385eb7a5b688a7d9e3386a5b632121..541bb0c475d19e9ec40802a108dc2f0cf5209c3b 100644
--- a/build/config/nacl/BUILD.gn
+++ b/build/config/nacl/BUILD.gn
@@ -6,14 +6,14 @@ import("//build/config/nacl/config.gni")
# Native Client Definitions
config("nacl_defines") {
- defines = [
- "_DEFAULT_SOURCE=1",
- "_BSD_SOURCE=1",
- "_POSIX_C_SOURCE=199506",
- "_XOPEN_SOURCE=600",
- "_GNU_SOURCE=1",
- "__STDC_LIMIT_MACROS=1",
- ]
+ if (is_linux || is_android || is_nacl) {
+ defines = [
+ "_POSIX_C_SOURCE=199506",
+ "_XOPEN_SOURCE=600",
+ "_GNU_SOURCE=1",
+ "__STDC_LIMIT_MACROS=1",
+ ]
+ }
}
config("nexe_defines") {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698