This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51906] thread lock test failures on darwin11 under Xcode 4.2
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Feb 2012 02:14:52 +0000
- Subject: [Bug libstdc++/51906] thread lock test failures on darwin11 under Xcode 4.2
- Auto-submitted: auto-generated
- References: <bug-51906-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51906
--- Comment #37 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-02-03 02:14:52 UTC ---
(In reply to comment #36)
> is there a Mac OS X version macro that libstdc++ can check to workaround the
> bug, or should we just assume it will be fixed and users will have a working
> version?
You would probably have to use Availability.h and something like...
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
// code only compiled when targeting Mac OS X and not iPhone
// note use of 1070 instead of __MAC_10_7
#if __MAC_OS_X_VERSION_MIN_REQUIRED == 1070
// code in here to run targeting Lion
#else
// code here can assume targeting pre- or post-Lion.
#endif
#endif