epoc32/include/stdapis/stlportv5/stl/config/stl_gcce.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/stlportv5/stl/config/stl_gcce.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/stlportv5/stl/config/stl_gcce.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,244 +1,32 @@
     1.4  /*
     1.5 -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.6 -
     1.7 -* Redistribution and use in source and binary forms, with or without 
     1.8 -* modification, are permitted provided that the following conditions are met:
     1.9 -
    1.10 -* Redistributions of source code must retain the above copyright notice, this 
    1.11 -* list of conditions and the following disclaimer.
    1.12 -* Redistributions in binary form must reproduce the above copyright notice, 
    1.13 -* this list of conditions and the following disclaimer in the documentation 
    1.14 -* and/or other materials provided with the distribution.
    1.15 -* Neither the name of Nokia Corporation nor the names of its contributors 
    1.16 -* may be used to endorse or promote products derived from this software 
    1.17 -* without specific prior written permission.
    1.18 -
    1.19 -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    1.20 -* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
    1.21 -* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
    1.22 -* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 
    1.23 -* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
    1.24 -* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
    1.25 -* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
    1.26 -* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
    1.27 -* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
    1.28 -* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    1.29 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
    1.30 +* All rights reserved.
    1.31 +* This component and the accompanying materials are made available
    1.32 +* under the terms of "Eclipse Public License v1.0"
    1.33 +* which accompanies this distribution, and is available
    1.34 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.35 +*
    1.36 +* Initial Contributors:
    1.37 +* Nokia Corporation - initial contribution.
    1.38 +*
    1.39 +* Contributors:
    1.40  *
    1.41  * Description:
    1.42 +* Name        : stl_gcce.h
    1.43 +* Part of     : standard c++ library. (config file)
    1.44 +* 
    1.45  *
    1.46  */
    1.47 -  
    1.48 -// =============================================================================
    1.49 -//	stl_gcce.h
    1.50 -//	This is a list of settings for STLport specific to the GCCE compiler.
    1.51 -//	Do not include this file directly.
    1.52 -// =============================================================================
    1.53  
    1.54 -# ifndef _STLP_GCCE_H
    1.55 -#  define  _STLP_GCCE_H
    1.56  
    1.57  
    1.58 -#if defined(__WINS__)
    1.59 -#  pragma warning ( disable : 4018 4097 4100 4127 4244 4284 4511 4512 4514 4786 4800 ) //4355 4284  4231 4511 4512 4097 4786 4800 4018 4146 4244 4514 4127 4100 4663)
    1.60 -#  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
    1.61 -// Uncomment if partial order of template functions is not available
    1.62 -#  define _STLP_NO_FUNC_PARTIAL_ORDERING 1
    1.63 +#ifndef _STL_GCCE_H_
    1.64 +#define _STL_GCCE_H_
    1.65 +
    1.66 +#define _STLP_COMPILER "GCCE"
    1.67 +
    1.68 +#ifdef __MARM__
    1.69 +  #define _M_ARM
    1.70  #endif
    1.71  
    1.72 -#ifndef _STLP_NO_IOSTREAMS
    1.73 -//#  define _STLP_NO_IOSTREAMS	               1
    1.74 -#endif
    1.75 -
    1.76 -//#  undef  _STLP_OWN_IOSTREAMS
    1.77 -//#define _STLP_OWN_IOSTREAMS
    1.78 -#define _STLP_USE_NEW_IOSTREAMS
    1.79 -//#  define _STLP_NO_NATIVE_MBSTATE_T            1
    1.80 -//#  define _NOTHREADS                           1
    1.81 -//#  define _STLP_NO_TYPEINFO                    1
    1.82 -
    1.83 -#ifndef __PLACEMENT_NEW_INLINE
    1.84 -#ifndef __E32STD_H__
    1.85 -#ifdef __cplusplus
    1.86 -inline void * operator new(unsigned int, void *_P) throw() { return (_P); }
    1.87 -inline void operator delete(void* /*aPtr*/, void* /*aBase*/) __NO_THROW {}
    1.88 -#endif
    1.89 -#define __PLACEMENT_NEW_INLINE
    1.90 -#endif // E32STD_H
    1.91 -#endif
    1.92 -
    1.93 -
    1.94 -//==========================================================
    1.95 -
    1.96 -// the values choosen here as defaults try to give
    1.97 -// maximum functionality on the most conservative settings
    1.98 -
    1.99 -// Mostly correct guess, change it for Alpha (and other environments
   1.100 -// that has 64-bit "long")
   1.101 -#  define _STLP_UINT32_T unsigned long
   1.102 -
   1.103 -
   1.104 -// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short. 
   1.105 -// #  define _STLP_WCHAR_T_IS_USHORT 1
   1.106 -
   1.107 -// Uncomment if long long is available
   1.108 - #  define _STLP_LONG_LONG long long
   1.109 -
   1.110 -// Uncomment if long double is not available
   1.111 -// #  define _STLP_NO_LONG_DOUBLE 1
   1.112 -
   1.113 -// Uncomment this if your compiler does not support namespaces 
   1.114 -//#  define _STLP_HAS_NO_NAMESPACES 1
   1.115 -
   1.116 -// Uncomment if "using" keyword does not work with template types 
   1.117 -// # define _STLP_BROKEN_USING_DIRECTIVE 1
   1.118 -
   1.119 -// Uncomment this if your compiler does not support exceptions
   1.120 -//#  define _STLP_HAS_NO_EXCEPTIONS 1
   1.121 -//#  define _STLP_USE_TRAP_LEAVE 1
   1.122 -
   1.123 -// Header <new> that comes with the compiler 
   1.124 -// does not define bad_alloc exception
   1.125 -//#if defined(__WINS__)
   1.126 -// Possibly required ???
   1.127 -#  define _STLP_NO_BAD_ALLOC  1
   1.128 -//#endif
   1.129 -
   1.130 -// Uncomment if member template methods are not available
   1.131 -// #  define _STLP_NO_MEMBER_TEMPLATES   1
   1.132 -
   1.133 -// Uncomment if member template classes are not available
   1.134 -#if defined(__WINS__)
   1.135 -#  define _STLP_NO_MEMBER_TEMPLATE_CLASSES   1
   1.136 -#endif
   1.137 -
   1.138 -// Uncomment if friend member templates are not available
   1.139 -#if defined(__WINS__)
   1.140 -// Possibly required ???
   1.141 -//#  define _STLP_NO_FRIEND_TEMPLATES   1
   1.142 -#endif
   1.143 -
   1.144 -// Compiler does not accept friend declaration qualified with namespace name.
   1.145 -// #  define _STLP_NO_QUALIFIED_FRIENDS 1
   1.146 -
   1.147 -// Uncomment if partial specialization is not available
   1.148 -#if defined(__WINS__)
   1.149 -#  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
   1.150 -#endif
   1.151 -
   1.152 -// Define if class being partially specialized require full name (template parameters)
   1.153 -// of itself for method declarations
   1.154 -// #  define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
   1.155 -
   1.156 -// Compiler has problems specializing members of partially 
   1.157 -// specialized class
   1.158 -// #  define _STLP_MEMBER_SPECIALIZATION_BUG
   1.159 -
   1.160 -// Compiler requires typename keyword on outline method definition 
   1.161 -// explicitly taking nested types/typedefs
   1.162 -// #define  _STLP_TYPENAME_ON_RETURN_TYPE
   1.163 -
   1.164 -// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
   1.165 -//   constant-initializer in the declaration of a static const data member
   1.166 -//   of integer type.  (See section 9.4.2, paragraph 4, of the C++ standard.)
   1.167 -#if defined(__WINS__)
   1.168 -# define _STLP_STATIC_CONST_INIT_BUG
   1.169 -#endif
   1.170 -
   1.171 -// Define if default constructor for builtin integer type fails to initialize it to 0
   1.172 -// #  define _STLP_DEFAULT_CONSTRUCTOR_BUG    1
   1.173 -
   1.174 -// Defined if constructor
   1.175 -// required to explicitly call member's default constructors for const objects
   1.176 -// #  define _STLP_CONST_CONSTRUCTOR_BUG    1
   1.177 -
   1.178 -// Define this if compiler lacks <exception> header
   1.179 -#  define _STLP_NO_EXCEPTION_HEADER 1
   1.180 -
   1.181 -// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
   1.182 -#   define _STLP_HAS_NO_NEW_C_HEADERS 1
   1.183 -
   1.184 -// uncomment if new-style headers <new> is available
   1.185 -// #  define _STLP_HAS_NEW_NEW_HEADER 1
   1.186 -
   1.187 -// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
   1.188 -// not std::
   1.189 -// #  define _STLP_VENDOR_GLOBAL_STD
   1.190 -
   1.191 -// uncomment this if <cstdio> and the like put stuff in ::namespace,
   1.192 -// not std::
   1.193 -#  define _STLP_VENDOR_GLOBAL_CSTD
   1.194 -/*
   1.195 -#  ifdef _PTHREADS
   1.196 -#    undef  _PTHREADS
   1.197 -#  endif
   1.198 -#  ifdef _STLP_PTHREADS
   1.199 -#    undef _STLP_PTHREADS
   1.200 -#  endif
   1.201 -#  ifdef _STLP_THREADS
   1.202 -#    undef _STLP_THREADS
   1.203 -#  endif
   1.204 -*/
   1.205 -
   1.206 -#ifdef _STLP_USE_NEW_C_HEADERS
   1.207 -#undef _STLP_USE_NEW_C_HEADERS
   1.208 -#endif
   1.209 -
   1.210 -#undef _STLP_NATIVE_C_HEADER
   1.211 -#ifndef __SYMBIAN32__
   1.212 -#define _STLP_NATIVE_C_HEADER(x) <libc/##x>
   1.213 -#endif
   1.214 -#define _STLP_NATIVE_HEADER(x) <x>
   1.215 -
   1.216 -
   1.217 -
   1.218 -#  define _STLP_NO_NEW_HEADER
   1.219 -#  define _STLP_NO_THREADS
   1.220 -
   1.221 -#  define _STLP_NO_EXCEPTIONS
   1.222 -//#   define _STLP_USE_TRAP_LEAVE
   1.223 -
   1.224 -#   define _STLP_NO_OWN_IOSTREAMS
   1.225 -//#   undef  _STLP_OWN_IOSTREAMS
   1.226 -//#define _STLP_OWN_IOSTREAMS
   1.227 -#define _STLP_USE_NEW_IOSTREAMS
   1.228 -#   define _STLP_USE_NEWALLOC
   1.229 -//#   define _STLP_NO_NODE_ALLOC
   1.230 -#   define _STLP_NO_LONG_DOUBLE
   1.231 -#   define _STLP_BIG_ENDIAN
   1.232 -// this one causes recursive abs() calls
   1.233 -#   define _STLP_LABS
   1.234 -#   define _STLP_LDIV
   1.235 -#   define _STLP_CONST_CONSTRUCTOR_BUG
   1.236 -// #   define _STLP_HAS_NAMESPACES
   1.237 -
   1.238 -//#define _STLP_NO_CSTD_FUNCTION_IMPORTS
   1.239 -
   1.240 -
   1.241 -//#warning ********** COMPILER SETTINGS **********
   1.242 -// -----------------------------------------------------------------------------
   1.243 -//  wstring support
   1.244 -//  This is a bit confusing.
   1.245 -//  * _STLP_NO_WCHAR_T inhibits the standard C wchar functions (Symbian doesn't 
   1.246 -//    have them).
   1.247 -//  * _STLP_HAS_WCHAR_T triggers the typedef of wstring.  It's based on wint_t,
   1.248 -//    which isn't typedef's elsewhere, so we take care of it here.
   1.249 -// -----------------------------------------------------------------------------
   1.250 -//#define _STLP_NO_WCHAR_T  1
   1.251 -#define _STLP_HAS_WCHAR_T 1
   1.252 -//typedef unsigned int wint_t;
   1.253 -#include <wchar.h>
   1.254 -
   1.255 -#ifdef _WCHAR_T
   1.256 -#warning ********** _WCHAR_T is defined **********
   1.257 -#endif
   1.258 -
   1.259 -#define _STLP_COMPLEX_SPECIALIZATION_BUG
   1.260 -#define _STLP_USE_EXCEPTIONS
   1.261 -#define _STLP_EXTERN_RANGE_ERRORS
   1.262 -//#define _STLP_NO_FORCE_INSTANTIATE
   1.263 -//#define __BUILDING_STLPORT
   1.264 -#  define _STLP_NO_NEW_NEW_HEADER 1
   1.265 -#  define _STLP_USE_DECLSPEC
   1.266 -#define _STLP_LIBSTD_CPP_NO_STATIC_VAR_
   1.267 -
   1.268 -#endif // _STLP_GCCE_H
   1.269 +#endif //_STL_GCCE_H_