libstdc++
x86_64-unknown-linux-gnu/bits/compatibility.h
Go to the documentation of this file.
00001 // Compatibility symbols for previous versions -*- C++ -*-
00002 
00003 // Copyright (C) 2005, 2006, 2009
00004 // Free Software Foundation, Inc.
00005 //
00006 // This file is part of the GNU ISO C++ Library.  This library is free
00007 // software; you can redistribute it and/or modify it under the
00008 // terms of the GNU General Public License as published by the
00009 // Free Software Foundation; either version 3, or (at your option)
00010 // any later version.
00011 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 
00017 // Under Section 7 of GPL version 3, you are granted additional
00018 // permissions described in the GCC Runtime Library Exception, version
00019 // 3.1, as published by the Free Software Foundation.
00020 
00021 // You should have received a copy of the GNU General Public License and
00022 // a copy of the GCC Runtime Library Exception along with this program;
00023 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
00024 // <http://www.gnu.org/licenses/>.
00025 
00026 /** @file bits/compatibility.h
00027  *  This is an internal header file, included by other library sources.
00028  *  You should not attempt to use it directly.
00029  */
00030 
00031 // Switch for symbol version macro.
00032 #ifndef _GLIBCXX_APPLY_SYMVER 
00033 #error must define _GLIBCXX_APPLY_SYMVER before including __FILE__
00034 #endif
00035 
00036 /* gcc-3.4.4
00037 _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv
00038 _ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv
00039  */
00040 namespace 
00041 {
00042 _GLIBCXX_APPLY_SYMVER(_ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv,
00043               _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv)
00044 
00045 #ifdef _GLIBCXX_USE_WCHAR_T
00046 _GLIBCXX_APPLY_SYMVER(_ZNSt21istreambuf_iteratorXXIwSt11char_traitsIwEEppEv,
00047               _ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv)
00048 #endif
00049 } // anonymous namespace
00050 
00051 /* gcc-4.0.0
00052 _ZNSs4_Rep26_M_set_length_and_sharableEj
00053 _ZNSs7_M_copyEPcPKcj
00054 _ZNSs7_M_moveEPcPKcj
00055 _ZNSs9_M_assignEPcjc
00056 _ZNKSs11_M_disjunctEPKc
00057 _ZNKSs15_M_check_lengthEjjPKc
00058 _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj
00059 _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj
00060 _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj
00061 _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw
00062 _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw
00063 _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc
00064 
00065 _ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv
00066 _ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv
00067 _ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv
00068 _ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv
00069 _ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv
00070 _ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv
00071 
00072 _ZNSi6ignoreEi
00073 _ZNSi6ignoreEv
00074 _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi
00075 _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv
00076 
00077 _ZNSt11char_traitsIcE2eqERKcS2_
00078 _ZNSt11char_traitsIwE2eqERKwS2_
00079  */
00080 namespace 
00081 {
00082 _GLIBCXX_APPLY_SYMVER(_ZNSt11char_traitsIcE4eqXXERKcS2_,
00083               _ZNSt11char_traitsIcE2eqERKcS2_)
00084 
00085 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00086 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_copyXXEPcPKcj,
00087               _ZNSs7_M_copyEPcPKcj)
00088 #else
00089 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_copyXXEPcPKcm,
00090               _ZNSs7_M_copyEPcPKcm)
00091 #endif
00092 
00093 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00094 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_moveXXEPcPKcj,
00095               _ZNSs7_M_moveEPcPKcj)
00096 #else
00097 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_moveXXEPcPKcm,
00098               _ZNSs7_M_moveEPcPKcm)
00099 #endif
00100 
00101 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00102 _GLIBCXX_APPLY_SYMVER(_ZNSs11_M_assignXXEPcjc,
00103               _ZNSs9_M_assignEPcjc)
00104 #else
00105 _GLIBCXX_APPLY_SYMVER(_ZNSs11_M_assignXXEPcmc,
00106               _ZNSs9_M_assignEPcmc)
00107 #endif
00108 
00109 _GLIBCXX_APPLY_SYMVER(_ZNKSs13_M_disjunctXXEPKc,
00110               _ZNKSs11_M_disjunctEPKc)
00111 
00112 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00113 _GLIBCXX_APPLY_SYMVER(_ZNKSs17_M_check_lengthXXEjjPKc,
00114               _ZNKSs15_M_check_lengthEjjPKc)
00115 #else
00116 _GLIBCXX_APPLY_SYMVER(_ZNKSs17_M_check_lengthXXEmmPKc,
00117               _ZNKSs15_M_check_lengthEmmPKc)
00118 #endif
00119 
00120 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00121   _GLIBCXX_APPLY_SYMVER(_ZNSs4_Rep28_M_set_length_and_sharableXXEj,
00122             _ZNSs4_Rep26_M_set_length_and_sharableEj)
00123 #else
00124   _GLIBCXX_APPLY_SYMVER(_ZNSs4_Rep28_M_set_length_and_sharableXXEm,
00125             _ZNSs4_Rep26_M_set_length_and_sharableEm)
00126 #endif
00127 
00128 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEv, _ZNSi6ignoreEv)
00129 
00130 #ifdef _GLIBCXX_PTRDIFF_T_IS_INT
00131 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEi, _ZNSi6ignoreEi)
00132 #else
00133 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEl, _ZNSi6ignoreEl)
00134 #endif
00135 
00136 _GLIBCXX_APPLY_SYMVER(_ZNKSt15basic_fstreamXXIcSt11char_traitsIcEE7is_openEv,
00137               _ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv)
00138 
00139 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ifstreamXXIcSt11char_traitsIcEE7is_openEv,
00140               _ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv)
00141 
00142 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ofstreamXXIcSt11char_traitsIcEE7is_openEv,
00143               _ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv)
00144 
00145   // Support for wchar_t.
00146 #ifdef _GLIBCXX_USE_WCHAR_T
00147 _GLIBCXX_APPLY_SYMVER(_ZNSt11char_traitsIwE4eqXXERKwS2_,
00148               _ZNSt11char_traitsIwE2eqERKwS2_)
00149 
00150 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00151 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_copyXXEPwPKwj,
00152               _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj)
00153 #else
00154   _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_copyXXEPwPKwm,
00155             _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm)
00156 #endif
00157 
00158 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00159 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_moveXXEPwPKwj,
00160               _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj)
00161 #else
00162 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_moveXXEPwPKwm,
00163               _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm)
00164 #endif
00165 
00166 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00167 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE11_M_assignXXEPwjw,
00168               _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw)
00169 #else
00170 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE11_M_assignXXEPwmw,
00171               _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw)
00172 #endif
00173 
00174 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE13_M_disjunctXXEPKw,
00175               _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw)
00176 
00177 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00178 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEjjPKc,
00179               _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc)
00180 #else
00181 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEmmPKc,
00182               _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc)
00183 #endif
00184 
00185 #ifdef _GLIBCXX_SIZE_T_IS_UINT
00186 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEj,
00187               _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj)
00188 #else
00189 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEm,
00190               _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm)
00191 #endif
00192 
00193 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEv,
00194               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv)
00195 
00196 #ifdef _GLIBCXX_PTRDIFF_T_IS_INT
00197 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEi,
00198               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi)
00199 #else
00200 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEl,
00201               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl)
00202 #endif
00203 
00204 _GLIBCXX_APPLY_SYMVER(_ZNKSt15basic_fstreamXXIwSt11char_traitsIwEE7is_openEv,
00205               _ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv)
00206 
00207 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ifstreamXXIwSt11char_traitsIwEE7is_openEv,
00208               _ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv)
00209 
00210 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ofstreamXXIwSt11char_traitsIwEE7is_openEv,
00211               _ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv)
00212 #endif
00213   } // anonymous namespace
00214