epoc32/include/stdapis/stlportv5/stl/config/stl_rvct.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/stdapis/stlport/config/stl_rvct.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
williamr@2
     3
williamr@2
     4
* Redistribution and use in source and binary forms, with or without 
williamr@2
     5
* modification, are permitted provided that the following conditions are met:
williamr@2
     6
williamr@2
     7
* Redistributions of source code must retain the above copyright notice, this 
williamr@2
     8
* list of conditions and the following disclaimer.
williamr@2
     9
* Redistributions in binary form must reproduce the above copyright notice, 
williamr@2
    10
* this list of conditions and the following disclaimer in the documentation 
williamr@2
    11
* and/or other materials provided with the distribution.
williamr@2
    12
* Neither the name of Nokia Corporation nor the names of its contributors 
williamr@2
    13
* may be used to endorse or promote products derived from this software 
williamr@2
    14
* without specific prior written permission.
williamr@2
    15
williamr@2
    16
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
williamr@2
    17
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
williamr@2
    18
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
williamr@2
    19
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 
williamr@2
    20
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
williamr@2
    21
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
williamr@2
    22
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
williamr@2
    23
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
williamr@2
    24
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
williamr@2
    25
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
williamr@2
    26
*
williamr@2
    27
* Description:
williamr@2
    28
*
williamr@2
    29
*/
williamr@2
    30
  
williamr@2
    31
// =============================================================================
williamr@2
    32
//	stl_rvct.h
williamr@2
    33
//	This is a list of settings for STLport specific to the ARM RVCT compiler.
williamr@2
    34
//	Do not include this file directly.
williamr@2
    35
// =============================================================================
williamr@2
    36
williamr@2
    37
# ifndef _STLP_RVCT_H
williamr@2
    38
#  define  _STLP_RVCT_H
williamr@2
    39
williamr@2
    40
williamr@2
    41
#if defined(__WINS__)
williamr@2
    42
#  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)
williamr@2
    43
#  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
williamr@2
    44
// Uncomment if partial order of template functions is not available
williamr@2
    45
#  define _STLP_NO_FUNC_PARTIAL_ORDERING 1
williamr@2
    46
#endif
williamr@2
    47
williamr@2
    48
#ifndef _STLP_NO_IOSTREAMS
williamr@2
    49
//#  define _STLP_NO_IOSTREAMS	               1
williamr@2
    50
#endif
williamr@2
    51
williamr@2
    52
//#  undef  _STLP_OWN_IOSTREAMS
williamr@2
    53
//#define _STLP_OWN_IOSTREAMS
williamr@2
    54
#define _STLP_USE_NEW_IOSTREAMS
williamr@2
    55
//#  define _STLP_NO_NATIVE_MBSTATE_T            1
williamr@2
    56
//#  define _NOTHREADS                           1
williamr@2
    57
//#  define _STLP_NO_TYPEINFO                    1
williamr@2
    58
williamr@2
    59
#ifndef __PLACEMENT_NEW_INLINE
williamr@2
    60
#ifndef __E32STD_H__
williamr@2
    61
#ifdef __cplusplus
williamr@2
    62
inline void * operator new(unsigned int, void *_P) throw() { return (_P); }
williamr@2
    63
inline void operator delete(void* /*aPtr*/, void* /*aBase*/) __NO_THROW {}
williamr@2
    64
#endif
williamr@2
    65
#define __PLACEMENT_NEW_INLINE
williamr@2
    66
#endif // E32STD_H
williamr@2
    67
#endif
williamr@2
    68
williamr@2
    69
williamr@2
    70
//==========================================================
williamr@2
    71
williamr@2
    72
// the values choosen here as defaults try to give
williamr@2
    73
// maximum functionality on the most conservative settings
williamr@2
    74
williamr@2
    75
// Mostly correct guess, change it for Alpha (and other environments
williamr@2
    76
// that has 64-bit "long")
williamr@2
    77
#  define _STLP_UINT32_T unsigned long
williamr@2
    78
williamr@2
    79
williamr@2
    80
// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short. 
williamr@2
    81
// #  define _STLP_WCHAR_T_IS_USHORT 1
williamr@2
    82
williamr@2
    83
// Uncomment if long long is available
williamr@2
    84
 #  define _STLP_LONG_LONG long long
williamr@2
    85
williamr@2
    86
// Uncomment if long double is not available
williamr@2
    87
// #  define _STLP_NO_LONG_DOUBLE 1
williamr@2
    88
williamr@2
    89
// Uncomment this if your compiler does not support namespaces 
williamr@2
    90
//#  define _STLP_HAS_NO_NAMESPACES 1
williamr@2
    91
williamr@2
    92
// Uncomment if "using" keyword does not work with template types 
williamr@2
    93
// # define _STLP_BROKEN_USING_DIRECTIVE 1
williamr@2
    94
williamr@2
    95
// Uncomment this if your compiler does not support exceptions
williamr@2
    96
//#  define _STLP_HAS_NO_EXCEPTIONS 1
williamr@2
    97
//#  define _STLP_USE_TRAP_LEAVE 1
williamr@2
    98
williamr@2
    99
// Header <new> that comes with the compiler 
williamr@2
   100
// does not define bad_alloc exception
williamr@2
   101
//#if defined(__WINS__)
williamr@2
   102
// Possibly required ???
williamr@2
   103
#  define _STLP_NO_BAD_ALLOC  1
williamr@2
   104
//#endif
williamr@2
   105
williamr@2
   106
// Uncomment if member template methods are not available
williamr@2
   107
// #  define _STLP_NO_MEMBER_TEMPLATES   1
williamr@2
   108
williamr@2
   109
// Uncomment if member template classes are not available
williamr@2
   110
#if defined(__WINS__)
williamr@2
   111
#  define _STLP_NO_MEMBER_TEMPLATE_CLASSES   1
williamr@2
   112
#endif
williamr@2
   113
williamr@2
   114
// Uncomment if friend member templates are not available
williamr@2
   115
#if defined(__WINS__)
williamr@2
   116
// Possibly required ???
williamr@2
   117
//#  define _STLP_NO_FRIEND_TEMPLATES   1
williamr@2
   118
#endif
williamr@2
   119
williamr@2
   120
// Compiler does not accept friend declaration qualified with namespace name.
williamr@2
   121
// #  define _STLP_NO_QUALIFIED_FRIENDS 1
williamr@2
   122
williamr@2
   123
// Uncomment if partial specialization is not available
williamr@2
   124
#if defined(__WINS__)
williamr@2
   125
#  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
williamr@2
   126
#endif
williamr@2
   127
williamr@2
   128
// Define if class being partially specialized require full name (template parameters)
williamr@2
   129
// of itself for method declarations
williamr@2
   130
// #  define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
williamr@2
   131
williamr@2
   132
// Compiler has problems specializing members of partially 
williamr@2
   133
// specialized class
williamr@2
   134
// #  define _STLP_MEMBER_SPECIALIZATION_BUG
williamr@2
   135
williamr@2
   136
// Compiler requires typename keyword on outline method definition 
williamr@2
   137
// explicitly taking nested types/typedefs
williamr@2
   138
// #define  _STLP_TYPENAME_ON_RETURN_TYPE
williamr@2
   139
williamr@2
   140
// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
williamr@2
   141
//   constant-initializer in the declaration of a static const data member
williamr@2
   142
//   of integer type.  (See section 9.4.2, paragraph 4, of the C++ standard.)
williamr@2
   143
#if defined(__WINS__)
williamr@2
   144
# define _STLP_STATIC_CONST_INIT_BUG
williamr@2
   145
#endif
williamr@2
   146
williamr@2
   147
// Define if default constructor for builtin integer type fails to initialize it to 0
williamr@2
   148
// #  define _STLP_DEFAULT_CONSTRUCTOR_BUG    1
williamr@2
   149
williamr@2
   150
// Defined if constructor
williamr@2
   151
// required to explicitly call member's default constructors for const objects
williamr@2
   152
// #  define _STLP_CONST_CONSTRUCTOR_BUG    1
williamr@2
   153
williamr@2
   154
// Define this if compiler lacks <exception> header
williamr@2
   155
#  define _STLP_NO_EXCEPTION_HEADER 1
williamr@2
   156
williamr@2
   157
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
williamr@2
   158
#   define _STLP_HAS_NO_NEW_C_HEADERS 1
williamr@2
   159
williamr@2
   160
// uncomment if new-style headers <new> is available
williamr@2
   161
// #  define _STLP_HAS_NEW_NEW_HEADER 1
williamr@2
   162
williamr@2
   163
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
williamr@2
   164
// not std::
williamr@2
   165
// #  define _STLP_VENDOR_GLOBAL_STD
williamr@2
   166
williamr@2
   167
// uncomment this if <cstdio> and the like put stuff in ::namespace,
williamr@2
   168
// not std::
williamr@2
   169
#  define _STLP_VENDOR_GLOBAL_CSTD
williamr@2
   170
/*
williamr@2
   171
#  ifdef _PTHREADS
williamr@2
   172
#    undef  _PTHREADS
williamr@2
   173
#  endif
williamr@2
   174
#  ifdef _STLP_PTHREADS
williamr@2
   175
#    undef _STLP_PTHREADS
williamr@2
   176
#  endif
williamr@2
   177
#  ifdef _STLP_THREADS
williamr@2
   178
#    undef _STLP_THREADS
williamr@2
   179
#  endif
williamr@2
   180
*/
williamr@2
   181
williamr@2
   182
#ifdef _STLP_USE_NEW_C_HEADERS
williamr@2
   183
#undef _STLP_USE_NEW_C_HEADERS
williamr@2
   184
#endif
williamr@2
   185
williamr@2
   186
#undef _STLP_NATIVE_C_HEADER
williamr@2
   187
#ifndef __SYMBIAN32__
williamr@2
   188
#define _STLP_NATIVE_C_HEADER(x) <libc/##x>
williamr@2
   189
#endif
williamr@2
   190
#define _STLP_NATIVE_HEADER(x) <x>
williamr@2
   191
williamr@2
   192
williamr@2
   193
williamr@2
   194
#  define _STLP_NO_NEW_HEADER
williamr@2
   195
#  define _STLP_NO_THREADS
williamr@2
   196
williamr@2
   197
#  define _STLP_NO_EXCEPTIONS
williamr@2
   198
//#   define _STLP_USE_TRAP_LEAVE
williamr@2
   199
williamr@2
   200
#   define _STLP_NO_OWN_IOSTREAMS
williamr@2
   201
//#   undef  _STLP_OWN_IOSTREAMS
williamr@2
   202
//#define _STLP_OWN_IOSTREAMS
williamr@2
   203
#define _STLP_USE_NEW_IOSTREAMS
williamr@2
   204
#   define _STLP_USE_NEWALLOC
williamr@2
   205
//#   define _STLP_NO_NODE_ALLOC
williamr@2
   206
#   define _STLP_NO_LONG_DOUBLE
williamr@2
   207
#   define _STLP_BIG_ENDIAN
williamr@2
   208
// this one causes recursive abs() calls
williamr@2
   209
#   define _STLP_LABS
williamr@2
   210
#   define _STLP_LDIV
williamr@2
   211
#   define _STLP_CONST_CONSTRUCTOR_BUG
williamr@2
   212
// #   define _STLP_HAS_NAMESPACES
williamr@2
   213
williamr@2
   214
//#define _STLP_NO_CSTD_FUNCTION_IMPORTS 
williamr@2
   215
williamr@2
   216
williamr@2
   217
//#warning ********** COMPILER SETTINGS **********
williamr@2
   218
// -----------------------------------------------------------------------------
williamr@2
   219
//  wstring support
williamr@2
   220
//  This is a bit confusing.
williamr@2
   221
//  * _STLP_NO_WCHAR_T inhibits the standard C wchar functions (Symbian doesn't 
williamr@2
   222
//    have them).
williamr@2
   223
//  * _STLP_HAS_WCHAR_T triggers the typedef of wstring.  It's based on wint_t,
williamr@2
   224
//    which isn't typedef's elsewhere, so we take care of it here.
williamr@2
   225
// -----------------------------------------------------------------------------
williamr@2
   226
//#define _STLP_NO_WCHAR_T  1
williamr@2
   227
#define _STLP_HAS_WCHAR_T 1
williamr@2
   228
//typedef unsigned int wint_t;
williamr@2
   229
#  include <wchar.h>
williamr@2
   230
williamr@2
   231
#ifdef _WCHAR_T
williamr@2
   232
#warning ********** _WCHAR_T is defined **********
williamr@2
   233
#endif
williamr@2
   234
williamr@2
   235
#define _STLP_COMPLEX_SPECIALIZATION_BUG
williamr@2
   236
#define _STLP_USE_EXCEPTIONS
williamr@2
   237
#define _STLP_EXTERN_RANGE_ERRORS
williamr@2
   238
//#define _STLP_NO_FORCE_INSTANTIATE
williamr@2
   239
//#define __BUILDING_STLPORT
williamr@2
   240
#  define _STLP_NO_NEW_NEW_HEADER 1
williamr@2
   241
#  define _STLP_USE_DECLSPEC
williamr@2
   242
#define _STLP_LIBSTD_CPP_NO_STATIC_VAR_
williamr@2
   243
williamr@2
   244
#endif // _STLP_RVCT_H