Make sure that __time_put constructors properly on non-Apple platforms.

llvm-svn: 134947
This commit is contained in:
Alexis Hunt 2011-07-12 00:55:04 +00:00
parent 7a26681092
commit 8dfec1ac7d
1 changed files with 4 additions and 0 deletions

View File

@ -2516,7 +2516,11 @@ class __time_put
{
locale_t __loc_;
protected:
#ifdef _LIBCPP_STABLE_APPLE_ABI
_LIBCPP_ALWAYS_INLINE __time_put() : __loc_(0) {}
#else // _LIBCPP_STABLE_APPLE_ABI
_LIBCPP_ALWAYS_INLINE __time_put() : __loc_(__cloc()) {}
#endif // _LIBCPP_STABLE_APPLE_ABI
__time_put(const char* __nm);
__time_put(const string& __nm);
~__time_put();