Author: jmolenda Date: Wed May 18 21:16:41 2016 New Revision: 270015 URL: http://llvm.org/viewvc/llvm-project?rev=270015&view=rev Log: Check that __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ is defined before comparing the value of it. <rdar://problem/26333564>
Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm?rev=270015&r1=270014&r2=270015&view=diff ============================================================================== --- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm (original) +++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm Wed May 18 21:16:41 2016 @@ -2275,7 +2275,7 @@ MachProcess::GetGenealogyImageInfo (size 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]; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits