[libcxx] r187332 - Glen: Minor tweaks to locale.cpp to help it compile with exceptions turned off.

Howard Hinnant hhinnant at apple.com
Sun Jul 28 11:20:00 PDT 2013


Author: hhinnant
Date: Sun Jul 28 13:20:00 2013
New Revision: 187332

URL: http://llvm.org/viewvc/llvm-project?rev=187332&view=rev
Log:
Glen: Minor tweaks to locale.cpp to help it compile with exceptions turned off.

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=187332&r1=187331&r2=187332&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Sun Jul 28 13:20:00 2013
@@ -18,9 +18,10 @@
 #include "codecvt"
 #include "vector"
 #include "algorithm"
-#include "algorithm"
 #include "typeinfo"
-#include "type_traits"
+#ifndef _LIBCPP_NO_EXCEPTIONS
+#  include "type_traits"
+#endif
 #include "clocale"
 #include "cstring"
 #include "cwctype"





More information about the cfe-commits mailing list