DescriptionGN: nacl_defines: Drop _BSD_SOURCE, _DEFAULT_SOURCE; conditionalize on OS
Drop _BSD_SOURCE and _DEFAULT_SOURCE defines, which are redundant with
_GNU_SOURCE on Linux. This brings the set affecting Linux in line with
the standalone NaCl build.
Conditionalize these defines to affect only Linux, Android, and NaCl
toolchains. That is, none of these are used on Mac (or Windows). This
makes the GN build consistent with the GYP and Scons builds. On Mac,
defining _POSIX_C_SOURCE (without also defining _DARWIN_C_SOURCE) makes
the system headers disable some symbols that NaCl sources need.
BUG=545236
R=dpranke@chromium.org, mseaborn@chromium.org
Committed: https://crrev.com/2640ff9632d74c85964e100b34811f90569fe510
Cr-Commit-Position: refs/heads/master@{#355327}
Patch Set 1 #
Total comments: 1
Patch Set 2 : conditionalize on os; no _DARWIN_C_SOURCE #Messages
Total messages: 11 (3 generated)
|