1.1 --- a/epoc32/include/stdapis/stlport/stl/_string_fwd.c Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stlport/stl/_string_fwd.c Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,57 @@
1.4 -_string_fwd.c
1.5 +/*
1.6 + * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
1.7 + *
1.8 + * Copyright (c) 1994
1.9 + * Hewlett-Packard Company
1.10 + *
1.11 + * Copyright (c) 1996,1997
1.12 + * Silicon Graphics Computer Systems, Inc.
1.13 + *
1.14 + * Copyright (c) 1997
1.15 + * Moscow Center for SPARC Technology
1.16 + *
1.17 + * Copyright (c) 1999
1.18 + * Boris Fomitchev
1.19 + *
1.20 + * This material is provided "as is", with absolutely no warranty expressed
1.21 + * or implied. Any use is at your own risk.
1.22 + *
1.23 + * Permission to use or copy this software for any purpose is hereby granted
1.24 + * without fee, provided the above notices are retained on all copies.
1.25 + * Permission to modify the code and to distribute modified code is granted,
1.26 + * provided the above notices are retained, and a notice that the code was
1.27 + * modified is included with the above copyright notice.
1.28 + *
1.29 + */
1.30 +
1.31 +#ifndef _STLP_STRING_FWD_H
1.32 +# include <stl/_string_fwd.h>
1.33 +#endif
1.34 +
1.35 +# if !defined ( _STLP_STRING_FWD_C) && defined(_STLP_OWN_IOSTREAMS)
1.36 +#define _STLP_STRING_FWD_C
1.37 +/*
1.38 +_STLP_EXP_DECLSPEC const char* _STLP_CALL
1.39 +__get_c_string(const string& __str)
1.40 +{
1.41 +return __str.c_str();
1.42 +}
1.43 +*/
1.44 +#elif !defined ( _STLP_STRING_FWD_C) && ! defined (_STLP_OWN_IOSTREAMS)
1.45 +#define _STLP_STRING_FWD_C
1.46 +
1.47 +_STLP_BEGIN_NAMESPACE
1.48 +
1.49 +template <class _CharT, class _Traits, class _Alloc>
1.50 +const char* _STLP_CALL
1.51 +__get_c_string(const basic_string<_CharT,_Traits,_Alloc>& __str) {
1.52 + return __str.c_str();
1.53 +}
1.54 +
1.55 +_STLP_END_NAMESPACE
1.56 +
1.57 +#endif /* _STLP_STRING_FWD_C */
1.58 +
1.59 +// Local Variables:
1.60 +// mode:C++
1.61 +// End: