/home/ntakagi/work/STLport-5.1.5/stlport/stl/config/_apple.h

Go to the documentation of this file.
00001 /* STLport configuration file
00002  * It is internal STLport header - DO NOT include it directly
00003  */
00004 
00005 /* common configuration settings for Apple MPW MrCpp / SCpp */
00006 
00007 #if defined (__MRC__)
00008 #  define _STLP_COMPILER "MPW MrCpp"
00009 #else
00010 #  define _STLP_COMPILER "MPW SCpp"
00011 #endif
00012 
00013 #if defined(__MRC__) && __MRC__ < 0x500
00014 # error Apple's MPW MrCpp v.5.0.0 or better compiler required
00015 #endif
00016 #if defined(__SC__) && __SC__ < 0x890
00017 # error Apple's MPW SCpp v.8.9.0 or better compiler required
00018 #endif
00019 
00020 /* TODO: Check that this config is necessary for all compiler versions.
00021  * It is here for historical reasons for the moment.
00022  */
00023 #define _STLP_NO_CONTAINERS_EXTENSION
00024 
00025 #ifdef qMacApp
00026 # ifndef __CONDITIONALMACROS__ /* skip including ConditionalMacros_AC.h if ConditionalMacros.h is already included */
00027 # include <CoreSwitches_AC.h>
00028 # include <ConditionalMacros_AC.h>
00029 # include <Types_AC.h>
00030 # define _STLP_FILE__ _FILE_AC
00031 # define _STLP_DEBUG_MESSAGE
00032 # define __stl_debug_message ProgramBreak_AC
00033 # include <ConditionalMacros.h>
00034 # endif
00035 # include <Types.h>
00036 #else
00037 # include <ConditionalMacros.h>
00038 # include <Types.h>
00039 #endif
00040 
00041 #define _STLP_UINT32_T UInt32
00042 typedef int wint_t;
00043 
00044 #ifndef TYPE_BOOL
00045 # error <ConditionalMacros.h> must be included. (TYPE_BOOL)
00046 #endif
00047 #if !TYPE_BOOL
00048 # define _STLP_NO_BOOL
00049 # define _STLP_DONT_USE_BOOL_TYPEDEF
00050 #endif
00051 
00052 #ifndef TYPE_LONGLONG
00053 # error <ConditionalMacros.h> must be included. (TYPE_LONGLONG)
00054 #endif
00055 #if TYPE_LONGLONG
00056 # define _STLP_LONG_LONG long long
00057 #endif
00058 
00059 #if !__option(exceptions)
00060 # define _STLP_HAS_NO_EXCEPTIONS
00061 #endif
00062 
00063 #define _STLP_DEBUG_MESSAGE_POST DebugStr("\pSTL diagnosis issued. See 'stderr' for detail.");
00064 #define _STLP_ASSERT_MSG_TRAILER " "
00065 
00066 #ifdef _STLP_DEBUG
00067 #   define _STLP_THROW(x) (DebugStr("\pSTL is about to throw exception: "#x),throw x)
00068 #endif
00069 
00070 #if defined(__MRC__)
00071 # ifndef __spillargs
00072 #  define __spillargs 1 // MrCpp requires this symbol to be defined as 1 to properly handle va_start; ref.[ file stdarg.h; line 26 ]
00073 # endif
00074 #endif
00075 
00076 #if defined(__SC__)
00077 #define _STLP_VENDOR_LONG_DOUBLE_MATH        //*TY 12/03/2000 - SCpp's native math type is long double
00078 #endif
00079 
00080 #ifndef _STLP_NATIVE_INCLUDE_PATH
00081 # if __option(unix_includes)
00082 #  define _STLP_NATIVE_INCLUDE_PATH ../CIncludes   // expects the alias to {CIncludes} under the same folder as {STL}
00083 # else
00084 #  define _STLP_NATIVE_INCLUDE_PATH ::CIncludes   // expects the alias to {CIncludes} under the same folder as {STL}
00085 # endif
00086 #endif
00087 #if !defined(_STLP_MAKE_HEADER)
00088 # if !__option(unix_includes)
00089 #  define _STLP_MAKE_HEADER(path, header) <path:header> // Mac uses ":" for directory delimiter
00090 # endif
00091 #endif
00092 
00093 # define _STLD _DBG  // to keep the length of generated symbols within the compiler limitation
00094 
00095 #define _STLP_USE_STDIO_IO 1       //*TY 02/24/2000 - see also ; ref.[ file _fstream.h; line 36 ]
00096 #define _STLP_NO_THREADS           //*TY 12/17/2000 - multi-thread capability not explored, yet.
00097 #undef _REENTRANT                  //*ty 11/24/2001 - to make sure no thread facility is activated
00098 #define _NOTHREADS                 //*ty 12/07/2001 -
00099 
00100 // native library limitations
00101 #define _STLP_VENDOR_GLOBAL_STD          // mpw's c++ libs do not utilize namespace std yet
00102 #define _STLP_NO_BAD_ALLOC               // known limitation
00103 #define _STLP_HAS_NO_NEW_C_HEADERS       // known limitation
00104 #define _STLP_NO_NEW_NEW_HEADER          // known limitation
00105 #define _STLP_NO_NATIVE_MBSTATE_T        // known limitation
00106 #define _STLP_NO_NATIVE_WIDE_FUNCTIONS   // known limitation
00107 #define _STLP_NO_NATIVE_WIDE_STREAMS     // known limitation
00108 #define _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT // known limitation
00109 #define _STLP_BROKEN_EXCEPTION_CLASS     // known limitation
00110 
00111 // compiler limitations
00112 # define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
00113 
00114 # define _STLP_MPWFIX_TRY try{                      //*TY 06/01/2000 - exception handling bug workaround
00115 # define _STLP_MPWFIX_CATCH }catch(...){throw;}              //*TY 06/01/2000 - exception handling bug workaround
00116 # define _STLP_MPWFIX_CATCH_ACTION(action) }catch(...){action;throw;}  //*TY 06/01/2000 - exception handling bug workaround
00117 # define _STLP_THROW_RETURN_BUG            // known limitation
00118 # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION    // known limitation
00119 # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX    // known limitation
00120 # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER    // known limitation
00121 # define _STLP_NO_RELOPS_NAMESPACE          // known limitation
00122 // end of stl_apple.h



Generated on Mon Mar 10 15:32:46 2008 by  doxygen 1.5.1