diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-11-14 21:17:15 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-11-14 21:17:15 +0000 |
commit | b5c63a2e071fc8a204a97e01a206ed783fbd437d (patch) | |
tree | 954c63836017f1b6f70852fbec3d24352c807f4b /libcxx/include/iterator | |
parent | a89edf6a61909aaa445203c5b984239d14c90154 (diff) | |
download | bcm5719-llvm-b5c63a2e071fc8a204a97e01a206ed783fbd437d.tar.gz bcm5719-llvm-b5c63a2e071fc8a204a97e01a206ed783fbd437d.zip |
Restrict optimized __pad_and_output implementation detail to desired releases.
llvm-svn: 167980
Diffstat (limited to 'libcxx/include/iterator')
-rw-r--r-- | libcxx/include/iterator | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/iterator b/libcxx/include/iterator index bcbf3ae4af8..0be7a8b3497 100644 --- a/libcxx/include/iterator +++ b/libcxx/include/iterator @@ -317,6 +317,10 @@ template <class T, size_t N> T* end(T (&array)[N]); #include <type_traits> #include <cstddef> #include <iosfwd> +#if __APPLE__ +#include <Availability.h> +#endif + #ifdef _LIBCPP_DEBUG #include <cassert> #endif @@ -882,6 +886,10 @@ public: _LIBCPP_INLINE_VISIBILITY ostreambuf_iterator& operator++(int) {return *this;} _LIBCPP_INLINE_VISIBILITY bool failed() const _NOEXCEPT {return __sbuf_ == 0;} +#if !defined(__APPLE__) || \ + (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED > __MAC_10_8) || \ + (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_6_0) + template <class _Ch, class _Tr> friend _LIBCPP_HIDDEN @@ -889,6 +897,7 @@ public: __pad_and_output(ostreambuf_iterator<_Ch, _Tr> __s, const _Ch* __ob, const _Ch* __op, const _Ch* __oe, ios_base& __iob, _Ch __fl); +#endif }; template <class _Iter> |