diff --git a/src/locale.cpp b/src/locale.cpp index bf95732ed..6300ce1c5 100644 --- a/src/locale.cpp +++ b/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"