summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-06-30 00:14:43 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-06-30 00:14:43 +0000
commit8bd1771abe44d1027460bcd1d7edcab556f75428 (patch)
treec00b5e3fd16c8d84662360c9d25b71e91dd06e33 /clang/lib/CodeGen/CodeGenModule.cpp
parent27841fd803ca0b8c81dcacccddf879b0dafd7f66 (diff)
downloadbcm5719-llvm-8bd1771abe44d1027460bcd1d7edcab556f75428.tar.gz
bcm5719-llvm-8bd1771abe44d1027460bcd1d7edcab556f75428.zip
Matthew Dempsky: POSIX defines that the _POSIX_C_SOURCE macros are to be set by user
code to specify what version of POSIX the system should provide. If you want to check what version of POSIX is actually available, you're supposed to test _POSIX_VERSION. However, since sysconf() has been in POSIX since 1995, it's probably safe to assume it's available on any system with a C++11 compiler, especially if _SC_NPROCESSORS_ONLN is defined too. So no point in a complicated preprocessor rule if just we unconditionally include <unistd.h> (on non-Windows systems). Also, I've added a #warning for to help porters detect when a suitable implementation isn't detected at compile-time. Howard: Matthew, can you patch CREDITS.TXT? Thanks. llvm-svn: 185275
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud