diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index bf95732ed7de..6300ce1c54b9 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -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"