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