summaryrefslogtreecommitdiffstats
path: root/libcxx/include/streambuf
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-11-06 21:08:48 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-11-06 21:08:48 +0000
commitcd47cbc7a44604a65d3ef391822a32b79b2f61e4 (patch)
treea8a24b04b88d31cf33571aeadc5d3252ca45e831 /libcxx/include/streambuf
parentdc4ecaff07b62f7ddf4be17d72b336182382b0e5 (diff)
downloadbcm5719-llvm-cd47cbc7a44604a65d3ef391822a32b79b2f61e4.tar.gz
bcm5719-llvm-cd47cbc7a44604a65d3ef391822a32b79b2f61e4.zip
Provide a way to disable use of extern templates in libc++. This is intended for the clients of libc++, not the libc++ build. The dylib should always contain the extern templates. To disable the client needs to put -D'_LIBCPP_EXTERN_TEMPLATE(...)=' on the command line.
llvm-svn: 167486
Diffstat (limited to 'libcxx/include/streambuf')
-rw-r--r--libcxx/include/streambuf8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/streambuf b/libcxx/include/streambuf
index e34ad23eb72..d6880241022 100644
--- a/libcxx/include/streambuf
+++ b/libcxx/include/streambuf
@@ -553,11 +553,11 @@ basic_streambuf<_CharT, _Traits>::overflow(int_type)
return traits_type::eof();
}
-extern template class basic_streambuf<char>;
-extern template class basic_streambuf<wchar_t>;
+_LIBCPP_EXTERN_TEMPLATE(class basic_streambuf<char>)
+_LIBCPP_EXTERN_TEMPLATE(class basic_streambuf<wchar_t>)
-extern template class basic_ios<char>;
-extern template class basic_ios<wchar_t>;
+_LIBCPP_EXTERN_TEMPLATE(class basic_ios<char>)
+_LIBCPP_EXTERN_TEMPLATE(class basic_ios<wchar_t>)
_LIBCPP_END_NAMESPACE_STD
OpenPOWER on IntegriCloud