# compatibility.h

Go to the documentation of this file.

    00001 // Compatibility symbols for previous versions -*- C++ -*-
    00002
    00003 // Copyright (C) 2005, 2006
    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 2, 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 // You should have received a copy of the GNU General Public License along
    00018 // with this library; see the file COPYING.  If not, write to the Free
    00019 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
    00020 // USA.
    00021
    00022 // As a special exception, you may use this file as part of a free software
    00023 // library without restriction.  Specifically, if other files instantiate
    00024 // templates or use macros or inline functions from this file, or you compile
    00025 // this file and link it with other files to produce an executable, this
    00026 // file does not by itself cause the resulting executable to be covered by
    00027 // the GNU General Public License.  This exception does not however
    00028 // invalidate any other reasons why the executable file might be covered by
    00029 // the GNU General Public License.
    00030
    00031 /** @file compatibility.h
    00032  *  This is an internal header file, included by other library sources.
    00033  *  You should not attempt to use it directly.
    00034  */
    00035
    00036 // Switch for symbol version macro.
    00037 #ifndef _GLIBCXX_APPLY_SYMVER
    00038 #error must define _GLIBCXX_APPLY_SYMVER before including __FILE__
    00039 #endif
    00040
    00041 /* gcc-3.4.4
    00042 _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv
    00043 _ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv
    00044  */
    00045 namespace
    00046 {
    00047 _GLIBCXX_APPLY_SYMVER(_ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv,
    00048               _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv)
    00049
    00050 #ifdef _GLIBCXX_USE_WCHAR_T
    00051 _GLIBCXX_APPLY_SYMVER(_ZNSt21istreambuf_iteratorXXIwSt11char_traitsIwEEppEv,
    00052               _ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv)
    00053 #endif
    00054 } // anonymous namespace
    00055
    00056 /* gcc-4.0.0
    00057 _ZNSs4_Rep26_M_set_length_and_sharableEj
    00058 _ZNSs7_M_copyEPcPKcj
    00059 _ZNSs7_M_moveEPcPKcj
    00060 _ZNSs9_M_assignEPcjc
    00061 _ZNKSs11_M_disjunctEPKc
    00062 _ZNKSs15_M_check_lengthEjjPKc
    00063 _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj
    00064 _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj
    00065 _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj
    00066 _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw
    00067 _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw
    00068 _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc
    00069
    00070 _ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv
    00071 _ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv
    00072 _ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv
    00073 _ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv
    00074 _ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv
    00075 _ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv
    00076
    00077 _ZNSi6ignoreEi
    00078 _ZNSi6ignoreEv
    00079 _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi
    00080 _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv
    00081
    00082 _ZNSt11char_traitsIcE2eqERKcS2_
    00083 _ZNSt11char_traitsIwE2eqERKwS2_
    00084  */
    00085 namespace
    00086 {
    00087 _GLIBCXX_APPLY_SYMVER(_ZNSt11char_traitsIcE4eqXXERKcS2_,
    00088               _ZNSt11char_traitsIcE2eqERKcS2_)
    00089
    00090 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00091 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_copyXXEPcPKcj,
    00092               _ZNSs7_M_copyEPcPKcj)
    00093 #else
    00094 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_copyXXEPcPKcm,
    00095               _ZNSs7_M_copyEPcPKcm)
    00096 #endif
    00097
    00098 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00099 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_moveXXEPcPKcj,
    00100               _ZNSs7_M_moveEPcPKcj)
    00101 #else
    00102 _GLIBCXX_APPLY_SYMVER(_ZNSs9_M_moveXXEPcPKcm,
    00103               _ZNSs7_M_moveEPcPKcm)
    00104 #endif
    00105
    00106 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00107 _GLIBCXX_APPLY_SYMVER(_ZNSs11_M_assignXXEPcjc,
    00108               _ZNSs9_M_assignEPcjc)
    00109 #else
    00110 _GLIBCXX_APPLY_SYMVER(_ZNSs11_M_assignXXEPcmc,
    00111               _ZNSs9_M_assignEPcmc)
    00112 #endif
    00113
    00114 _GLIBCXX_APPLY_SYMVER(_ZNKSs13_M_disjunctXXEPKc,
    00115               _ZNKSs11_M_disjunctEPKc)
    00116
    00117 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00118 _GLIBCXX_APPLY_SYMVER(_ZNKSs17_M_check_lengthXXEjjPKc,
    00119               _ZNKSs15_M_check_lengthEjjPKc)
    00120 #else
    00121 _GLIBCXX_APPLY_SYMVER(_ZNKSs17_M_check_lengthXXEmmPKc,
    00122               _ZNKSs15_M_check_lengthEmmPKc)
    00123 #endif
    00124
    00125 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00126   _GLIBCXX_APPLY_SYMVER(_ZNSs4_Rep28_M_set_length_and_sharableXXEj,
    00127             _ZNSs4_Rep26_M_set_length_and_sharableEj)
    00128 #else
    00129   _GLIBCXX_APPLY_SYMVER(_ZNSs4_Rep28_M_set_length_and_sharableXXEm,
    00130             _ZNSs4_Rep26_M_set_length_and_sharableEm)
    00131 #endif
    00132
    00133 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEv, _ZNSi6ignoreEv)
    00134
    00135 #ifdef _GLIBCXX_PTRDIFF_T_IS_INT
    00136 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEi, _ZNSi6ignoreEi)
    00137 #else
    00138 _GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEl, _ZNSi6ignoreEl)
    00139 #endif
    00140
    00141 _GLIBCXX_APPLY_SYMVER(_ZNKSt15basic_fstreamXXIcSt11char_traitsIcEE7is_openEv,
    00142               _ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv)
    00143
    00144 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ifstreamXXIcSt11char_traitsIcEE7is_openEv,
    00145               _ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv)
    00146
    00147 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ofstreamXXIcSt11char_traitsIcEE7is_openEv,
    00148               _ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv)
    00149
    00150   // Support for wchar_t.
    00151 #ifdef _GLIBCXX_USE_WCHAR_T
    00152 _GLIBCXX_APPLY_SYMVER(_ZNSt11char_traitsIwE4eqXXERKwS2_,
    00153               _ZNSt11char_traitsIwE2eqERKwS2_)
    00154
    00155 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00156 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_copyXXEPwPKwj,
    00157               _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj)
    00158 #else
    00159   _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_copyXXEPwPKwm,
    00160             _ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm)
    00161 #endif
    00162
    00163 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00164 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_moveXXEPwPKwj,
    00165               _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj)
    00166 #else
    00167 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE9_M_moveXXEPwPKwm,
    00168               _ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm)
    00169 #endif
    00170
    00171 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00172 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE11_M_assignXXEPwjw,
    00173               _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw)
    00174 #else
    00175 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE11_M_assignXXEPwmw,
    00176               _ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw)
    00177 #endif
    00178
    00179 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE13_M_disjunctXXEPKw,
    00180               _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw)
    00181
    00182 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00183 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEjjPKc,
    00184               _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc)
    00185 #else
    00186 _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEmmPKc,
    00187               _ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc)
    00188 #endif
    00189
    00190 #ifdef _GLIBCXX_SIZE_T_IS_UINT
    00191 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEj,
    00192               _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj)
    00193 #else
    00194 _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEm,
    00195               _ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm)
    00196 #endif
    00197
    00198 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEv,
    00199               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv)
    00200
    00201 #ifdef _GLIBCXX_PTRDIFF_T_IS_INT
    00202 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEi,
    00203               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi)
    00204 #else
    00205 _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEl,
    00206               _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl)
    00207 #endif
    00208
    00209 _GLIBCXX_APPLY_SYMVER(_ZNKSt15basic_fstreamXXIwSt11char_traitsIwEE7is_openEv,
    00210               _ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv)
    00211
    00212 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ifstreamXXIwSt11char_traitsIwEE7is_openEv,
    00213               _ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv)
    00214
    00215 _GLIBCXX_APPLY_SYMVER(_ZNKSt16basic_ofstreamXXIwSt11char_traitsIwEE7is_openEv,
    00216               _ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv)
    00217 #endif
    00218   } // anonymous namespace
    00219