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

Unified Diff: SConstruct

Issue 1411473004: Drop _DEFAULT_SOURCE and _BSD_SOURCE defines (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: 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 | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
index 128e433ee88c133b144accc6fcd83a4bbb3af921..92dc5a2d1879f0a0ac39bd3a354d289529269530 100755
--- a/SConstruct
+++ b/SConstruct
@@ -2806,9 +2806,7 @@ def MakeGenericLinuxEnv(platform=None):
# Prepend so we can disable warnings via Append
linux_env.Prepend(
- CPPDEFINES = [['_DEFAULT_SOURCE', '1'],
- ['_BSD_SOURCE', '1'],
- ['_POSIX_C_SOURCE', '199506'],
+ CPPDEFINES = [['_POSIX_C_SOURCE', '199506'],
['_XOPEN_SOURCE', '600'],
['_GNU_SOURCE', '1'],
['_LARGEFILE64_SOURCE', '1'],
@@ -3120,9 +3118,6 @@ nacl_env.Append(
['__STDC_FORMAT_MACROS', '1'],
# _GNU_SOURCE ensures that strtof() gets declared.
['_GNU_SOURCE', 1],
- # strdup, and other common stuff
- ['_DEFAULT_SOURCE', '1'],
- ['_BSD_SOURCE', '1'],
['_POSIX_C_SOURCE', '199506'],
['_XOPEN_SOURCE', '600'],
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698