summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2015-12-02 00:50:42 -0600
committertrav90 <travawine@protonmail.ch>2015-12-02 00:50:42 -0600
commit3dee156313318cf29971aad8a744641194a53187 (patch)
tree32c567f2ec1dd1c94020d156a86501308b38b7ab /build
parentc8ebfe491d9d0e63481f727d4fd8d46c3de6f217 (diff)
downloadpalemoon-gre-3dee156313318cf29971aad8a744641194a53187.tar.gz
Bump stdc++compat minimum supported libstdc++ version to 4.3
Diffstat (limited to 'build')
-rw-r--r--build/unix/stdc++compat/stdc++compat.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/build/unix/stdc++compat/stdc++compat.cpp b/build/unix/stdc++compat/stdc++compat.cpp
index a77a6173b..aa7507263 100644
--- a/build/unix/stdc++compat/stdc++compat.cpp
+++ b/build/unix/stdc++compat/stdc++compat.cpp
@@ -22,28 +22,16 @@
GLIBCXX_3.4.18 is from gcc 4.8.0 (190787)
GLIBCXX_3.4.19 is from gcc 4.8.1 (199309)
GLIBCXX_3.4.20 is from gcc 4.9.0 (199307)
- GLIBCXX_3.4.21 is from gcc 5.0 (210290) */
+ GLIBCXX_3.4.21 is from gcc 5.0 (210290)
+
+This file adds the necessary compatibility tricks to avoid symbols with
+version GLIBCXX_3.4.11 and higher, maintaining binary compatibility with
+libstdc++ 4.3.
+*/
#define GLIBCXX_VERSION(a, b, c) (((a) << 16) | ((b) << 8) | (c))
namespace std {
-#if MOZ_LIBSTDCXX_VERSION >= GLIBCXX_VERSION(3, 4, 9)
- /* Instantiate these templates to avoid GLIBCXX_3.4.9 symbol versions */
- template ostream& ostream::_M_insert(double);
- template ostream& ostream::_M_insert(long);
- template ostream& ostream::_M_insert(unsigned long);
- template ostream& ostream::_M_insert(long long);
- template ostream& ostream::_M_insert(unsigned long long);
- template ostream& ostream::_M_insert(bool);
- template ostream& ostream::_M_insert(const void*);
- template ostream& __ostream_insert(ostream&, const char*, streamsize);
- template istream& istream::_M_extract(double&);
- template istream& istream::_M_extract(float&);
- template istream& istream::_M_extract(unsigned int&);
- template istream& istream::_M_extract(unsigned long&);
- template istream& istream::_M_extract(unsigned short&);
- template istream& istream::_M_extract(unsigned long long&);
-#endif
#if MOZ_LIBSTDCXX_VERSION >= GLIBCXX_VERSION(3, 4, 14)
/* Instantiate these templates to avoid GLIBCXX_3.4.14 symbol versions
* depending on optimization level */