epoc32/include/stdapis/stlportv5/stl/config/stl_winscw.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_winscw.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_winscw.h
williamr@2
    33
//	This is a list of settings for STLport specific to the Metrowerks
williamr@2
    34
//  CodeWarrior for Symbian compiler.  Do not include this file directly.
williamr@2
    35
// =============================================================================
williamr@2
    36
williamr@2
    37
#ifndef _STLP_WINSCW
williamr@2
    38
#	define  _STLP_WINSCW
williamr@2
    39
williamr@2
    40
// -----------------------------------------------------------------------------
williamr@2
    41
//	iostreams
williamr@2
    42
//	No support for these in Symbian.
williamr@2
    43
// -----------------------------------------------------------------------------
williamr@2
    44
/*
williamr@2
    45
#	ifndef _STLP_NO_IOSTREAMS
williamr@2
    46
#		define _STLP_NO_IOSTREAMS
williamr@2
    47
#	endif
williamr@2
    48
williamr@2
    49
#	ifdef _STLP_OWN_IOSTREAMS
williamr@2
    50
#   	undef  _STLP_OWN_IOSTREAMS
williamr@2
    51
#	endif
williamr@2
    52
*/
williamr@2
    53
//#	define _STLP_NO_NATIVE_MBSTATE_T            1
williamr@2
    54
//#	define _NOTHREADS                           1
williamr@2
    55
//#	define _STLP_NO_TYPEINFO                    1
williamr@2
    56
williamr@2
    57
williamr@2
    58
#	ifndef __PLACEMENT_NEW_INLINE
williamr@2
    59
#		ifndef __E32STD_H__
williamr@2
    60
#  ifdef __cplusplus
williamr@2
    61
		inline void * operator new(unsigned int, void *_P) throw(){ return (_P); }
williamr@2
    62
        inline void operator delete(void* /*aPtr*/, void* /*aBase*/) __NO_THROW {}
williamr@2
    63
#  endif        
williamr@2
    64
#		define __PLACEMENT_NEW_INLINE
williamr@2
    65
#		endif // E32STD_H
williamr@2
    66
#	endif
williamr@2
    67
williamr@2
    68
//#  undef  _STLP_OWN_IOSTREAMS
williamr@2
    69
//#define _STLP_OWN_IOSTREAMS
williamr@2
    70
#define _STLP_USE_NEW_IOSTREAMS
williamr@2
    71
williamr@2
    72
williamr@2
    73
//==========================================================
williamr@2
    74
williamr@2
    75
// the values choosen here as defaults try to give
williamr@2
    76
// maximum functionality on the most conservative settings
williamr@2
    77
williamr@2
    78
// Mostly correct guess, change it for Alpha (and other environments
williamr@2
    79
// that has 64-bit "long")
williamr@2
    80
#  define _STLP_UINT32_T unsigned long
williamr@2
    81
williamr@2
    82
	
williamr@2
    83
// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short. 
williamr@2
    84
// #  define _STLP_WCHAR_T_IS_USHORT 1
williamr@2
    85
williamr@2
    86
// Uncomment if long long is available
williamr@2
    87
#  define _STLP_LONG_LONG long long
williamr@2
    88
williamr@2
    89
// Uncomment if long double is not available
williamr@2
    90
// #  define _STLP_NO_LONG_DOUBLE 1
williamr@2
    91
williamr@2
    92
// Uncomment this if your compiler does not support namespaces 
williamr@2
    93
//#  define _STLP_HAS_NO_NAMESPACES 1
williamr@2
    94
williamr@2
    95
// Uncomment if "using" keyword does not work with template types 
williamr@2
    96
// # define _STLP_BROKEN_USING_DIRECTIVE 1
williamr@2
    97
williamr@2
    98
// Uncomment this if your compiler does not support exceptions
williamr@2
    99
//#  define _STLP_HAS_NO_EXCEPTIONS 1
williamr@2
   100
//#  define _STLP_USE_TRAP_LEAVE 1
williamr@2
   101
williamr@2
   102
// Header <new> that comes with the compiler 
williamr@2
   103
// does not define bad_alloc exception
williamr@2
   104
//#	if defined(__WINS__)
williamr@2
   105
// Possibly required ???
williamr@2
   106
#  define _STLP_NO_BAD_ALLOC  1
williamr@2
   107
//#	endif
williamr@2
   108
williamr@2
   109
// Uncomment if member template methods are not available
williamr@2
   110
// #  define _STLP_NO_MEMBER_TEMPLATES   1
williamr@2
   111
williamr@2
   112
// Uncomment if member template classes are not available
williamr@2
   113
#	if defined(__WINS__)
williamr@2
   114
//# 		define _STLP_NO_MEMBER_TEMPLATE_CLASSES   1
williamr@2
   115
#	endif
williamr@2
   116
williamr@2
   117
// Uncomment if friend member templates are not available
williamr@2
   118
#if defined(__WINS__)
williamr@2
   119
// Possibly required ???
williamr@2
   120
//#  define _STLP_NO_FRIEND_TEMPLATES   1
williamr@2
   121
#endif
williamr@2
   122
williamr@2
   123
// Compiler does not accept friend declaration qualified with namespace name.
williamr@2
   124
// #  define _STLP_NO_QUALIFIED_FRIENDS 1
williamr@2
   125
williamr@2
   126
// Uncomment if partial specialization is not available
williamr@2
   127
#	if defined(__WINS__)
williamr@2
   128
//#		define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
williamr@2
   129
#	endif
williamr@2
   130
williamr@2
   131
// Define if class being partially specialized require full name (template parameters)
williamr@2
   132
// of itself for method declarations
williamr@2
   133
// #  define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
williamr@2
   134
williamr@2
   135
// Compiler has problems specializing members of partially 
williamr@2
   136
// specialized class
williamr@2
   137
// #  define _STLP_MEMBER_SPECIALIZATION_BUG
williamr@2
   138
williamr@2
   139
// Compiler requires typename keyword on outline method definition 
williamr@2
   140
// explicitly taking nested types/typedefs
williamr@2
   141
// #define  _STLP_TYPENAME_ON_RETURN_TYPE
williamr@2
   142
williamr@2
   143
// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
williamr@2
   144
//   constant-initializer in the declaration of a static const data member
williamr@2
   145
//   of integer type.  (See section 9.4.2, paragraph 4, of the C++ standard.)
williamr@2
   146
#if defined(__WINS__)
williamr@2
   147
//#	define _STLP_STATIC_CONST_INIT_BUG
williamr@2
   148
#endif
williamr@2
   149
williamr@2
   150
// Define if default constructor for builtin integer type fails to initialize it to 0
williamr@2
   151
// #  define _STLP_DEFAULT_CONSTRUCTOR_BUG    1
williamr@2
   152
williamr@2
   153
// Defined if constructor
williamr@2
   154
// required to explicitly call member's default constructors for const objects
williamr@2
   155
// #  define _STLP_CONST_CONSTRUCTOR_BUG    1
williamr@2
   156
williamr@2
   157
// Define this if compiler lacks <exception> header
williamr@2
   158
#  define _STLP_NO_EXCEPTION_HEADER 1
williamr@2
   159
williamr@2
   160
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
williamr@2
   161
#   define _STLP_HAS_NO_NEW_C_HEADERS 1
williamr@2
   162
williamr@2
   163
// uncomment if new-style headers <new> is available
williamr@2
   164
// #  define _STLP_HAS_NEW_NEW_HEADER 1
williamr@2
   165
williamr@2
   166
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
williamr@2
   167
// not std::
williamr@2
   168
// #  define _STLP_VENDOR_GLOBAL_STD
williamr@2
   169
williamr@2
   170
// uncomment this if <cstdio> and the like put stuff in ::namespace,
williamr@2
   171
// not std::
williamr@2
   172
#	define _STLP_VENDOR_GLOBAL_CSTD
williamr@2
   173
/*
williamr@2
   174
#	ifdef _PTHREADS
williamr@2
   175
#		undef  _PTHREADS
williamr@2
   176
#	endif
williamr@2
   177
#	ifdef _STLP_PTHREADS
williamr@2
   178
#		undef _STLP_PTHREADS
williamr@2
   179
#	endif
williamr@2
   180
#	ifdef _STLP_THREADS
williamr@2
   181
#		undef _STLP_THREADS
williamr@2
   182
#	endif
williamr@2
   183
*/
williamr@2
   184
#	define _STLP_NATIVE_INCLUDE_PATH
williamr@2
   185
#	define _STLP_NATIVE_C_INCLUTE_PATH
williamr@2
   186
williamr@2
   187
#	define _STLP_NO_NEW_HEADER
williamr@2
   188
#	define _STLP_NO_THREADS
williamr@2
   189
williamr@2
   190
#	define _STLP_NO_EXCEPTIONS
williamr@2
   191
williamr@2
   192
#   define _STLP_USE_NEWALLOC
williamr@2
   193
//#   define _STLP_NO_NODE_ALLOC
williamr@2
   194
#   define _STLP_NO_LONG_DOUBLE
williamr@2
   195
#   define _STLP_BIG_ENDIAN
williamr@2
   196
// this one causes recursive abs() calls
williamr@2
   197
#   define _STLP_LABS
williamr@2
   198
#   define _STLP_LDIV
williamr@2
   199
#   define _STLP_CONST_CONSTRUCTOR_BUG
williamr@2
   200
// #   define _STLP_HAS_NAMESPACES
williamr@2
   201
williamr@2
   202
#ifdef _STLP_USE_NEW_C_HEADERS
williamr@2
   203
#undef _STLP_USE_NEW_C_HEADERS
williamr@2
   204
#endif
williamr@2
   205
williamr@2
   206
#undef _STLP_NATIVE_C_HEADER
williamr@2
   207
#ifndef __SYMBIAN32__
williamr@2
   208
#define _STLP_NATIVE_C_HEADER(x) <libc/##x>
williamr@2
   209
#endif
williamr@2
   210
#define _STLP_NATIVE_HEADER(x) <x>
williamr@2
   211
williamr@2
   212
// -----------------------------------------------------------------------------
williamr@2
   213
//  wstring support
williamr@2
   214
//  This is a bit confusing.
williamr@2
   215
//  * _STLP_NO_WCHAR_T inhibits the standard C wchar functions (Symbian doesn't 
williamr@2
   216
//    have them).
williamr@2
   217
//  * _STLP_HAS_WCHAR_T triggers the typedef of wstring.  It's based on wint_t,
williamr@2
   218
//    which isn't typedef's elsewhere, so we take care of it here.
williamr@2
   219
// -----------------------------------------------------------------------------
williamr@2
   220
//#	define _STLP_NO_WCHAR_T  1
williamr@2
   221
#	define _STLP_HAS_WCHAR_T 1
williamr@2
   222
#	define _STLP_WCHAR_T_IS_USHORT 1
williamr@2
   223
#  include <wchar.h>
williamr@2
   224
williamr@2
   225
#define _STLP_COMPLEX_SPECIALIZATION_BUG
williamr@2
   226
#define _STLP_USE_EXCEPTIONS
williamr@2
   227
#define _STLP_EXTERN_RANGE_ERRORS
williamr@2
   228
//#define _STLP_NO_FORCE_INSTANTIATE
williamr@2
   229
//#define __BUILDING_STLPORT
williamr@2
   230
//#  define _STLP_USE_STDIO_IO
williamr@2
   231
#  define _STLP_NO_NEW_NEW_HEADER
williamr@2
   232
#  define _STLP_USE_DECLSPEC
williamr@2
   233
#define __LIBSTD_CPP_SYMBIAN32_WSD__
williamr@2
   234
williamr@2
   235
//==========================================================
williamr@2
   236
#endif  // _STLP_WINSCW