[cfe-commits] [libcxx] r151718 - /libcxx/trunk/include/locale

David Chisnall csdavec at swan.ac.uk
Wed Feb 29 05:00:07 PST 2012


Author: theraven
Date: Wed Feb 29 07:00:07 2012
New Revision: 151718

URL: http://llvm.org/viewvc/llvm-project?rev=151718&view=rev
Log:
Don't define __locale_raii if we are not going to be using it.


Modified:
    libcxx/trunk/include/locale

Modified: libcxx/trunk/include/locale
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/locale?rev=151718&r1=151717&r2=151718&view=diff
==============================================================================
--- libcxx/trunk/include/locale (original)
+++ libcxx/trunk/include/locale Wed Feb 29 07:00:07 2012
@@ -211,7 +211,9 @@
 
 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





More information about the cfe-commits mailing list