also use boost codecvt on linux

This commit is contained in:
Konstantin Käfer
2014-08-21 16:03:02 +02:00
parent 6730beec0e
commit 178d8ca62d

View File

@@ -4,12 +4,13 @@
#include <memory>
// g++/libstdc++ is missing c++11 codecvt support
#ifndef __clang__
#if ! defined(__clang__) || defined(__linux__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#include <boost/locale.hpp>
#pragma GCC diagnostic pop
#else
// Assume that codecvt is present on clang on non-linux systems
#include <codecvt>
#include <locale>
#endif