summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-02-13 09:30:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-13 09:30:01 +0000
commit68aaead27cb9afcf496ec4f2f76832e1af675c3c (patch)
tree68dd5a0742d8289dd783b34707424985a65b7eec
parent7ce32925f194ccc3df2b947b6901e6f1717bdbe2 (diff)
parent5cb39a8709c34db4666c2e90cbc60ff8870e6149 (diff)
downloadlibcxx-pie-qpr1-release.tar.gz
am: 5cb39a8709 Change-Id: Icbb0bcac1e692ea76a2b93b8d2f95c8af863210e
-rw-r--r--include/__config2
-rw-r--r--src/algorithm.cpp2
-rw-r--r--src/ios.cpp3
-rw-r--r--src/locale.cpp3
-rw-r--r--src/string.cpp3
-rw-r--r--src/valarray.cpp3
6 files changed, 1 insertions, 15 deletions
diff --git a/include/__config b/include/__config
index ecc668bca..a4acbcaf1 100644
--- a/include/__config
+++ b/include/__config
@@ -905,7 +905,7 @@ template <unsigned> struct __static_assert_check {};
#endif
#ifndef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...)
+#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#endif
#ifndef _LIBCPP_EXTERN_TEMPLATE2
diff --git a/src/algorithm.cpp b/src/algorithm.cpp
index 132a51de0..f036eb7ab 100644
--- a/src/algorithm.cpp
+++ b/src/algorithm.cpp
@@ -7,8 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#undef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#include "algorithm"
#include "random"
#include "mutex"
diff --git a/src/ios.cpp b/src/ios.cpp
index c1d232778..0f1d88e37 100644
--- a/src/ios.cpp
+++ b/src/ios.cpp
@@ -9,9 +9,6 @@
#include "__config"
-#undef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
-
#include "ios"
#include <stdlib.h>
diff --git a/src/locale.cpp b/src/locale.cpp
index bea7ba36f..11f864a2f 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -7,9 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#undef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
-
// On Solaris, we need to define something to make the C99 parts of localeconv
// visible.
#ifdef __sun__
diff --git a/src/string.cpp b/src/string.cpp
index 6a175f221..d7ebdd3e5 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -7,9 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#undef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
-
#include "string"
#include "cstdlib"
#include "cwchar"
diff --git a/src/valarray.cpp b/src/valarray.cpp
index f6745dff4..2d8db52ac 100644
--- a/src/valarray.cpp
+++ b/src/valarray.cpp
@@ -7,9 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#undef _LIBCPP_EXTERN_TEMPLATE
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
-
#include "valarray"
_LIBCPP_BEGIN_NAMESPACE_STD