williamr@4: /* STLport configuration file williamr@4: * It is internal STLport header - DO NOT include it directly williamr@4: */ williamr@4: williamr@4: /* common configuration settings for Apple MPW MrCpp / SCpp */ williamr@4: williamr@4: #if defined (__MRC__) williamr@4: # define _STLP_COMPILER "MPW MrCpp" williamr@4: #else williamr@4: # define _STLP_COMPILER "MPW SCpp" williamr@4: #endif williamr@4: williamr@4: #if defined(__MRC__) && __MRC__ < 0x500 williamr@4: # error Apple's MPW MrCpp v.5.0.0 or better compiler required williamr@4: #endif williamr@4: #if defined(__SC__) && __SC__ < 0x890 williamr@4: # error Apple's MPW SCpp v.8.9.0 or better compiler required williamr@4: #endif williamr@4: williamr@4: /* TODO: Check that this config is necessary for all compiler versions. williamr@4: * It is here for historical reasons for the moment. williamr@4: */ williamr@4: #define _STLP_NO_CONTAINERS_EXTENSION williamr@4: williamr@4: #ifdef qMacApp williamr@4: # ifndef __CONDITIONALMACROS__ /* skip including ConditionalMacros_AC.h if ConditionalMacros.h is already included */ williamr@4: # include williamr@4: # include williamr@4: # include williamr@4: # define _STLP_FILE__ _FILE_AC williamr@4: # define _STLP_DEBUG_MESSAGE williamr@4: # define __stl_debug_message ProgramBreak_AC williamr@4: # include williamr@4: # endif williamr@4: # include williamr@4: #else williamr@4: # include williamr@4: # include williamr@4: #endif williamr@4: williamr@4: #define _STLP_UINT32_T UInt32 williamr@4: typedef int wint_t; williamr@4: williamr@4: #ifndef TYPE_BOOL williamr@4: # error must be included. (TYPE_BOOL) williamr@4: #endif williamr@4: #if !TYPE_BOOL williamr@4: # define _STLP_NO_BOOL williamr@4: # define _STLP_DONT_USE_BOOL_TYPEDEF williamr@4: #endif williamr@4: williamr@4: #ifndef TYPE_LONGLONG williamr@4: # error must be included. (TYPE_LONGLONG) williamr@4: #endif williamr@4: #if TYPE_LONGLONG williamr@4: # define _STLP_LONG_LONG long long williamr@4: #endif williamr@4: williamr@4: #if !__option(exceptions) williamr@4: # define _STLP_HAS_NO_EXCEPTIONS williamr@4: #endif williamr@4: williamr@4: #define _STLP_DEBUG_MESSAGE_POST DebugStr("\pSTL diagnosis issued. See 'stderr' for detail."); williamr@4: #define _STLP_ASSERT_MSG_TRAILER " " williamr@4: williamr@4: #ifdef _STLP_DEBUG williamr@4: # define _STLP_THROW(x) (DebugStr("\pSTL is about to throw exception: "#x),throw x) williamr@4: #endif williamr@4: williamr@4: #if defined(__MRC__) williamr@4: # ifndef __spillargs williamr@4: # define __spillargs 1 // MrCpp requires this symbol to be defined as 1 to properly handle va_start; ref.[ file stdarg.h; line 26 ] williamr@4: # endif williamr@4: #endif williamr@4: williamr@4: #if defined(__SC__) williamr@4: #define _STLP_VENDOR_LONG_DOUBLE_MATH //*TY 12/03/2000 - SCpp's native math type is long double williamr@4: #endif williamr@4: williamr@4: #ifndef _STLP_NATIVE_INCLUDE_PATH williamr@4: # if __option(unix_includes) williamr@4: # define _STLP_NATIVE_INCLUDE_PATH ../CIncludes // expects the alias to {CIncludes} under the same folder as {STL} williamr@4: # else williamr@4: # define _STLP_NATIVE_INCLUDE_PATH ::CIncludes // expects the alias to {CIncludes} under the same folder as {STL} williamr@4: # endif williamr@4: #endif williamr@4: #if !defined(_STLP_MAKE_HEADER) williamr@4: # if !__option(unix_includes) williamr@4: # define _STLP_MAKE_HEADER(path, header) // Mac uses ":" for directory delimiter williamr@4: # endif williamr@4: #endif williamr@4: williamr@4: # define _STLD _DBG // to keep the length of generated symbols within the compiler limitation williamr@4: williamr@4: #define _STLP_USE_STDIO_IO 1 //*TY 02/24/2000 - see also ; ref.[ file _fstream.h; line 36 ] williamr@4: #define _STLP_NO_THREADS //*TY 12/17/2000 - multi-thread capability not explored, yet. williamr@4: #undef _REENTRANT //*ty 11/24/2001 - to make sure no thread facility is activated williamr@4: #define _NOTHREADS //*ty 12/07/2001 - williamr@4: williamr@4: // native library limitations williamr@4: #define _STLP_VENDOR_GLOBAL_STD // mpw's c++ libs do not utilize namespace std yet williamr@4: #define _STLP_NO_BAD_ALLOC // known limitation williamr@4: #define _STLP_HAS_NO_NEW_C_HEADERS // known limitation williamr@4: #define _STLP_NO_NEW_NEW_HEADER // known limitation williamr@4: #define _STLP_NO_NATIVE_MBSTATE_T // known limitation williamr@4: #define _STLP_NO_NATIVE_WIDE_FUNCTIONS // known limitation williamr@4: #define _STLP_NO_NATIVE_WIDE_STREAMS // known limitation williamr@4: #define _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT // known limitation williamr@4: #define _STLP_BROKEN_EXCEPTION_CLASS // known limitation williamr@4: williamr@4: // compiler limitations williamr@4: # define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS williamr@4: williamr@4: # define _STLP_MPWFIX_TRY try{ //*TY 06/01/2000 - exception handling bug workaround williamr@4: # define _STLP_MPWFIX_CATCH }catch(...){throw;} //*TY 06/01/2000 - exception handling bug workaround williamr@4: # define _STLP_MPWFIX_CATCH_ACTION(action) }catch(...){action;throw;} //*TY 06/01/2000 - exception handling bug workaround williamr@4: # define _STLP_THROW_RETURN_BUG // known limitation williamr@4: # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION // known limitation williamr@4: # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX // known limitation williamr@4: # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER // known limitation williamr@4: # define _STLP_NO_RELOPS_NAMESPACE // known limitation williamr@4: // end of stl_apple.h