epoc32/include/stdapis/stlport/config/stl_rvct.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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_rvct.h
    33 //	This is a list of settings for STLport specific to the ARM RVCT compiler.
    34 //	Do not include this file directly.
    35 // =============================================================================
    36 
    37 # ifndef _STLP_RVCT_H
    38 #  define  _STLP_RVCT_H
    39 
    40 
    41 #ifndef __PLACEMENT_NEW_INLINE
    42 #ifndef __E32STD_H__
    43 #ifdef __cplusplus
    44 inline void * operator new(unsigned int, void *_P) throw() { return (_P); }
    45 inline void operator delete(void* /*aPtr*/, void* /*aBase*/) __NO_THROW {}
    46 #endif
    47 #define __PLACEMENT_NEW_INLINE
    48 #endif // E32STD_H
    49 #endif
    50 
    51 /*
    52 // Uncomment if member template classes are not available
    53 #if defined(__WINS__)
    54 #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES   1
    55 #endif
    56 
    57 // Uncomment if partial specialization is not available
    58 #if defined(__WINS__)
    59 #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
    60 #endif
    61 */
    62 
    63 //#warning ********** COMPILER SETTINGS **********
    64 // -----------------------------------------------------------------------------
    65 //  wstring support
    66 //  This is a bit confusing.
    67 //  * _STLP_NO_WCHAR_T inhibits the standard C wchar functions (Symbian doesn't 
    68 //    have them).
    69 //  * _STLP_HAS_WCHAR_T triggers the typedef of wstring.  It's based on wint_t,
    70 //    which isn't typedef's elsewhere, so we take care of it here.
    71 // -----------------------------------------------------------------------------
    72 
    73 #define _STLP_HAS_WCHAR_T 1
    74 #  include <wchar.h>
    75 
    76 #ifdef _WCHAR_T
    77 #warning ********** _WCHAR_T is defined **********
    78 #endif
    79 
    80 
    81 #define _STLP_LIBSTD_CPP_NO_STATIC_VAR_
    82 
    83 #endif // _STLP_RVCT_H