Don't define __locale_raii if we are not going to be using it.

llvm-svn: 151718
This commit is contained in:
David Chisnall 2012-02-29 13:00:07 +00:00
parent e1da544e0b
commit ca78592c16
1 changed files with 2 additions and 0 deletions

View File

@ -211,7 +211,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
typedef _VSTD::remove_pointer<locale_t>::type __locale_struct;
typedef _VSTD::unique_ptr<__locale_struct, decltype(&freelocale)> __locale_unique_ptr;
#ifndef _LIBCPP_LOCALE__L_EXTENSIONS
typedef _VSTD::unique_ptr<__locale_struct, decltype(&uselocale)> __locale_raii;
#endif
// OSX has nice foo_l() functions that let you turn off use of the global
// locale. Linux, not so much. The following functions avoid the locale when