Try 2 to add extern C++ to __libcpp_library_version
authorEric Fiselier <eric@efcs.ca>
Fri, 28 Oct 2016 18:26:06 +0000 (18:26 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 28 Oct 2016 18:26:06 +0000 (18:26 +0000)
llvm-svn: 285427

libcxx/include/__config

index e00416b..4a8fef8 100644 (file)
@@ -908,9 +908,11 @@ extern "C" void __sanitizer_annotate_contiguous_container(
 #define _LIBCPP_HAS_NO_BUILTIN_ADDRESSOF
 #endif
 
+extern "C++" {
 _LIBCPP_BEGIN_NAMESPACE_STD
-_LIBCPP_FUNC_VIS _LIBCPP_WEAK extern "C++" int __libcpp_library_version();
+_LIBCPP_FUNC_VIS _LIBCPP_WEAK  int __libcpp_library_version();
 _LIBCPP_END_NAMESPACE_STD
+}
 
 #define _LIBCPP_LIBRARY_VERSION \
  (_VSTD::__libcpp_library_version ? _VSTD::__libcpp_library_version() : -1)