aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-10-03 12:50:46 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-10-03 12:50:46 +0100
commit6a0d23af49e16577418566ab4fb165fea2efe286 (patch)
tree00f6965a3a89bc05af5c114be662848901442b64 /libstdc++-v3/include
parent3fe2ddae4b15a17184237097a5c9363eb94fe99a (diff)
downloadgcc-6a0d23af49e16577418566ab4fb165fea2efe286.zip
gcc-6a0d23af49e16577418566ab4fb165fea2efe286.tar.gz
gcc-6a0d23af49e16577418566ab4fb165fea2efe286.tar.bz2
Ensure "C++" language linkage for std::abs overloads
PR libstdc++/77814 * include/bits/std_abs.h: Use "C++" language linkage. * testsuite/17_intro/headers/c++2011/linkage.cc: Move <complex.h> to the end. Add <stdalign.h>. From-SVN: r240710
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/std_abs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/std_abs.h b/libstdc++-v3/include/bits/std_abs.h
index ab0f980..732b81a3 100644
--- a/libstdc++-v3/include/bits/std_abs.h
+++ b/libstdc++-v3/include/bits/std_abs.h
@@ -43,6 +43,8 @@
#undef abs
+extern "C++"
+{
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -103,5 +105,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
+}
#endif // _GLIBCXX_BITS_STD_ABS_H