Check that __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ is defined

before comparing the value of it.
<rdar://problem/26333564> 

llvm-svn: 270015
This commit is contained in:
Jason Molenda
2016-05-19 02:16:41 +00:00
parent 906d91e762
commit 1fec404da0

View File

@@ -2275,7 +2275,7 @@ MachProcess::GetGenealogyImageInfo (size_t idx)
bool
MachProcess::GetOSVersionNumbers (uint64_t *major, uint64_t *minor, uint64_t *patch)
{
#if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101000)
#if defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101000)
return false;
#else
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];