[solaris] Convert the support library to C++ to fix -std=c++11 build
authorMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 16:54:59 +0000 (16:54 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 16:54:59 +0000 (16:54 +0000)
commitef634ecddde9dc73db8c2ff74cc937c03b020c2d
tree1d0ad8639de8f366d1207e23720f32aa8791403e
parent376548c34c705119d3b9312338cd238a926551b7
[solaris] Convert the support library to C++ to fix -std=c++11 build

Convert the Solaris xlocale.c compatibility library from plain C to C++
in order to fix the build failures caused by the addition of -std=c++11
to LIBCXX_COMPILE_FLAGS. The additional flag got propagated to the C
file, resulting in error with strict compilers.

Differential Revision: https://reviews.llvm.org/D25431

llvm-svn: 284494
libcxx/lib/CMakeLists.txt
libcxx/src/support/solaris/xlocale.cpp [moved from libcxx/src/support/solaris/xlocale.c with 98% similarity]