epoc32/include/tools/stlport/stl/config/_apple.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
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
/* STLport configuration file
williamr@2
     2
 * It is internal STLport header - DO NOT include it directly
williamr@2
     3
 */
williamr@2
     4
williamr@2
     5
/* common configuration settings for Apple MPW MrCpp / SCpp */
williamr@2
     6
williamr@2
     7
#if defined (__MRC__)
williamr@2
     8
#  define _STLP_COMPILER "MPW MrCpp"
williamr@2
     9
#else
williamr@2
    10
#  define _STLP_COMPILER "MPW SCpp"
williamr@2
    11
#endif
williamr@2
    12
williamr@2
    13
#if defined(__MRC__) && __MRC__ < 0x500
williamr@2
    14
# error Apple's MPW MrCpp v.5.0.0 or better compiler required
williamr@2
    15
#endif
williamr@2
    16
#if defined(__SC__) && __SC__ < 0x890
williamr@2
    17
# error Apple's MPW SCpp v.8.9.0 or better compiler required
williamr@2
    18
#endif
williamr@2
    19
williamr@2
    20
/* TODO: Check that this config is necessary for all compiler versions.
williamr@2
    21
 * It is here for historical reasons for the moment.
williamr@2
    22
 */
williamr@2
    23
#define _STLP_NO_CONTAINERS_EXTENSION
williamr@2
    24
williamr@2
    25
#ifdef qMacApp
williamr@2
    26
# ifndef __CONDITIONALMACROS__ /* skip including ConditionalMacros_AC.h if ConditionalMacros.h is already included */
williamr@2
    27
# include <CoreSwitches_AC.h>
williamr@2
    28
# include <ConditionalMacros_AC.h>
williamr@2
    29
# include <Types_AC.h>
williamr@2
    30
# define _STLP_FILE__ _FILE_AC
williamr@2
    31
# define _STLP_DEBUG_MESSAGE
williamr@2
    32
# define __stl_debug_message ProgramBreak_AC
williamr@2
    33
# include <ConditionalMacros.h>
williamr@2
    34
# endif
williamr@2
    35
# include <Types.h>
williamr@2
    36
#else
williamr@2
    37
# include <ConditionalMacros.h>
williamr@2
    38
# include <Types.h>
williamr@2
    39
#endif
williamr@2
    40
williamr@2
    41
#define _STLP_UINT32_T UInt32
williamr@2
    42
typedef int wint_t;
williamr@2
    43
williamr@2
    44
#ifndef TYPE_BOOL
williamr@2
    45
# error <ConditionalMacros.h> must be included. (TYPE_BOOL)
williamr@2
    46
#endif
williamr@2
    47
#if !TYPE_BOOL
williamr@2
    48
# define _STLP_NO_BOOL
williamr@2
    49
# define _STLP_DONT_USE_BOOL_TYPEDEF
williamr@2
    50
#endif
williamr@2
    51
williamr@2
    52
#ifndef TYPE_LONGLONG
williamr@2
    53
# error <ConditionalMacros.h> must be included. (TYPE_LONGLONG)
williamr@2
    54
#endif
williamr@2
    55
#if TYPE_LONGLONG
williamr@2
    56
# define _STLP_LONG_LONG long long
williamr@2
    57
#endif
williamr@2
    58
williamr@2
    59
#if !__option(exceptions)
williamr@2
    60
# define _STLP_HAS_NO_EXCEPTIONS
williamr@2
    61
#endif
williamr@2
    62
williamr@2
    63
#define _STLP_DEBUG_MESSAGE_POST DebugStr("\pSTL diagnosis issued. See 'stderr' for detail.");
williamr@2
    64
#define _STLP_ASSERT_MSG_TRAILER " "
williamr@2
    65
williamr@2
    66
#ifdef _STLP_DEBUG
williamr@2
    67
#   define _STLP_THROW(x) (DebugStr("\pSTL is about to throw exception: "#x),throw x)
williamr@2
    68
#endif
williamr@2
    69
williamr@2
    70
#if defined(__MRC__)
williamr@2
    71
# ifndef __spillargs
williamr@2
    72
#  define __spillargs 1 // MrCpp requires this symbol to be defined as 1 to properly handle va_start; ref.[ file stdarg.h; line 26 ]
williamr@2
    73
# endif
williamr@2
    74
#endif
williamr@2
    75
williamr@2
    76
#if defined(__SC__)
williamr@2
    77
#define _STLP_VENDOR_LONG_DOUBLE_MATH        //*TY 12/03/2000 - SCpp's native math type is long double
williamr@2
    78
#endif
williamr@2
    79
williamr@2
    80
#ifndef _STLP_NATIVE_INCLUDE_PATH
williamr@2
    81
# if __option(unix_includes)
williamr@2
    82
#  define _STLP_NATIVE_INCLUDE_PATH ../CIncludes   // expects the alias to {CIncludes} under the same folder as {STL}
williamr@2
    83
# else
williamr@2
    84
#  define _STLP_NATIVE_INCLUDE_PATH ::CIncludes   // expects the alias to {CIncludes} under the same folder as {STL}
williamr@2
    85
# endif
williamr@2
    86
#endif
williamr@2
    87
#if !defined(_STLP_MAKE_HEADER)
williamr@2
    88
# if !__option(unix_includes)
williamr@2
    89
#  define _STLP_MAKE_HEADER(path, header) <path:header> // Mac uses ":" for directory delimiter
williamr@2
    90
# endif
williamr@2
    91
#endif
williamr@2
    92
williamr@2
    93
# define _STLD _DBG  // to keep the length of generated symbols within the compiler limitation
williamr@2
    94
williamr@2
    95
#define _STLP_USE_STDIO_IO 1       //*TY 02/24/2000 - see also ; ref.[ file _fstream.h; line 36 ]
williamr@2
    96
#define _STLP_NO_THREADS           //*TY 12/17/2000 - multi-thread capability not explored, yet.
williamr@2
    97
#undef _REENTRANT                  //*ty 11/24/2001 - to make sure no thread facility is activated
williamr@2
    98
#define _NOTHREADS                 //*ty 12/07/2001 -
williamr@2
    99
williamr@2
   100
// native library limitations
williamr@2
   101
#define _STLP_VENDOR_GLOBAL_STD          // mpw's c++ libs do not utilize namespace std yet
williamr@2
   102
#define _STLP_NO_BAD_ALLOC               // known limitation
williamr@2
   103
#define _STLP_HAS_NO_NEW_C_HEADERS       // known limitation
williamr@2
   104
#define _STLP_NO_NEW_NEW_HEADER          // known limitation
williamr@2
   105
#define _STLP_NO_NATIVE_MBSTATE_T        // known limitation
williamr@2
   106
#define _STLP_NO_NATIVE_WIDE_FUNCTIONS   // known limitation
williamr@2
   107
#define _STLP_NO_NATIVE_WIDE_STREAMS     // known limitation
williamr@2
   108
#define _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT // known limitation
williamr@2
   109
#define _STLP_BROKEN_EXCEPTION_CLASS     // known limitation
williamr@2
   110
williamr@2
   111
// compiler limitations
williamr@2
   112
# define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
williamr@2
   113
williamr@2
   114
# define _STLP_MPWFIX_TRY try{                      //*TY 06/01/2000 - exception handling bug workaround
williamr@2
   115
# define _STLP_MPWFIX_CATCH }catch(...){throw;}              //*TY 06/01/2000 - exception handling bug workaround
williamr@2
   116
# define _STLP_MPWFIX_CATCH_ACTION(action) }catch(...){action;throw;}  //*TY 06/01/2000 - exception handling bug workaround
williamr@2
   117
# define _STLP_THROW_RETURN_BUG            // known limitation
williamr@2
   118
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION    // known limitation
williamr@2
   119
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX    // known limitation
williamr@2
   120
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER    // known limitation
williamr@2
   121
# define _STLP_NO_RELOPS_NAMESPACE          // known limitation
williamr@2
   122
// end of stl_apple.h