williamr@2: /* williamr@2: * Copyright (c) 1997 williamr@2: * Moscow Center for SPARC Technology williamr@2: * williamr@2: * Copyright (c) 1999 williamr@2: * Boris Fomitchev williamr@2: * williamr@2: * This material is provided "as is", with absolutely no warranty expressed williamr@2: * or implied. Any use is at your own risk. williamr@2: * williamr@2: * Permission to use or copy this software for any purpose is hereby granted williamr@2: * without fee, provided the above notices are retained on all copies. williamr@2: * Permission to modify the code and to distribute modified code is granted, williamr@2: * provided the above notices are retained, and a notice that the code was williamr@2: * modified is included with the above copyright notice. williamr@2: * williamr@2: */ williamr@2: williamr@2: /* williamr@2: * Purpose of this file : williamr@2: * williamr@2: * A list of COMPILER-SPECIFIC portion of STLport settings. williamr@2: * This file is provided to help in manual configuration williamr@2: * of STLport. This file is being included by stlcomp.h williamr@2: * when STLport is unable to identify your compiler. williamr@2: * Please remove the error diagnostic below before adjusting williamr@2: * macros. williamr@2: * williamr@2: */ williamr@2: #ifndef _STLP_MYCOMP_H williamr@2: #define _STLP_MYCOMP_H williamr@2: williamr@2: //#error "Your compiler version is not recognized by STLport. Please edit " williamr@2: williamr@2: //========================================================== williamr@2: williamr@2: // the values choosen here as defaults try to give williamr@2: // maximum functionality on the most conservative settings williamr@2: williamr@2: // Mostly correct guess, change it for Alpha (and other environments williamr@2: // that has 64-bit "long") williamr@2: // # define _STLP_UINT32_T unsigned long williamr@2: williamr@2: // Disables wchar_t functionality williamr@2: // # define _STLP_NO_WCHAR_T 1 williamr@2: williamr@2: // Define if wchar_t is not a unique type, and is actually a typedef to unsigned short. williamr@2: // # define _STLP_WCHAR_T_IS_USHORT 1 williamr@2: williamr@2: // Uncomment if long long is available williamr@2: // # define _STLP_LONG_LONG long long williamr@2: williamr@2: // Uncomment if long double is not available williamr@2: // # define _STLP_NO_LONG_DOUBLE 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support "typename" keyword williamr@2: // # define _STLP_NEED_TYPENAME 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support "mutable" keyword williamr@2: // # define _STLP_NEED_MUTABLE 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support "explicit" keyword williamr@2: // # define _STLP_NEED_EXPLICIT 1 williamr@2: williamr@2: // Uncomment if new-style-casts like const_cast<> are not available williamr@2: // # define _STLP_NO_NEW_STYLE_CASTS 1 williamr@2: williamr@2: // Uncomment this if your compiler does not have "bool" type williamr@2: // # define _STLP_NO_BOOL 1 williamr@2: williamr@2: // Uncomment this if your compiler does not have "bool" type, but has "bool" keyword reserved williamr@2: // # define _STLP_DONT_USE_BOOL_TYPEDEF 1 williamr@2: williamr@2: // Uncomment this if your compiler does not have "bool" type, but defines "bool" in williamr@2: // # define _STLP_YVALS_H 1 williamr@2: williamr@2: // Uncomment this if your compiler has limited or no default template arguments for classes williamr@2: // # define _STLP_LIMITED_DEFAULT_TEMPLATES 1 williamr@2: williamr@2: // Uncomment this if your compiler support only complete (not dependent on other parameters) williamr@2: // types as default parameters for class templates williamr@2: // # define _STLP_DEFAULT_TYPE_PARAM 1 williamr@2: williamr@2: // Uncomment this if your compiler do not support default parameters in template class methods williamr@2: // # define _STLP_DONT_SUP_DFLT_PARAM 1 williamr@2: williamr@2: // Uncomment this if your compiler has problem with not-type williamr@2: // default template parameters williamr@2: // # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1 williamr@2: williamr@2: // Define if compiler has williamr@2: // trouble with functions getting non-type-parameterized classes as parameters williamr@2: // # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1 williamr@2: williamr@2: // Uncomment this if your compiler lacks static data members. williamr@2: // Uncomment next line if your compiler supports __attribute__((weak)) williamr@2: // # define _STLP_NO_STATIC_TEMPLATE_DATA 1 williamr@2: // # define _STLP_WEAK_ATTRIBUTE 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support namespaces williamr@2: // # define _STLP_HAS_NO_NAMESPACES 1 williamr@2: williamr@2: // Uncomment if "using" keyword does not work with template types williamr@2: // # define _STLP_BROKEN_USING_DIRECTIVE 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support exceptions williamr@2: // # define _STLP_HAS_NO_EXCEPTIONS 1 williamr@2: williamr@2: // Uncomment this when you are able to detect that the user do not williamr@2: // want to use the exceptions feature. williamr@2: // # define _STLP_DONT_USE_EXCEPTIONS 1 williamr@2: williamr@2: // Uncomment this if your compiler does not support exception specifications williamr@2: // # define _STLP_NO_EXCEPTION_SPEC williamr@2: williamr@2: // Define this if your compiler requires return statement after throw() williamr@2: // # define _STLP_THROW_RETURN_BUG 1 williamr@2: williamr@2: // Define this if your compiler do not support return of void williamr@2: // # define _STLP_DONT_RETURN_VOID 1 williamr@2: williamr@2: // Header that comes with the compiler williamr@2: // does not define bad_alloc exception williamr@2: // # define _STLP_NO_BAD_ALLOC 1 williamr@2: williamr@2: // Define this if your compiler do not throw bad_alloc from the new operator williamr@2: // # define _STLP_NEW_DONT_THROW_BAD_ALLOC 1 williamr@2: williamr@2: // Uncomment if member template methods are not available williamr@2: // # define _STLP_NO_MEMBER_TEMPLATES 1 williamr@2: williamr@2: // Uncomment if member template classes are not available williamr@2: // # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1 williamr@2: williamr@2: // Uncomment if your compiler do not support the std::allocator rebind technique williamr@2: // This is a special case of bad member template classes support, it is automatically williamr@2: // defined if _STLP_NO_MEMBER_TEMPLATE_CLASSES is defined. williamr@2: // # define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE 1 williamr@2: williamr@2: // Uncomment if no "template" keyword should be used with member template classes williamr@2: // # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1 williamr@2: williamr@2: // Uncomment if friend member templates are not available williamr@2: // # define _STLP_NO_FRIEND_TEMPLATES 1 williamr@2: williamr@2: // Compiler does not accept friend declaration qualified with namespace name. williamr@2: // # define _STLP_NO_QUALIFIED_FRIENDS 1 williamr@2: williamr@2: // Uncomment if partial specialization is not available williamr@2: // # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1 williamr@2: williamr@2: // Define if class being partially specialized require full name (template parameters) williamr@2: // of itself for method declarations williamr@2: // # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS williamr@2: williamr@2: // Compiler has problem with qualified specializations (cont int, volatile int...) williamr@2: // # define _STLP_QUALIFIED_SPECIALIZATION_BUG williamr@2: williamr@2: // Compiler has problems specializing members of partially williamr@2: // specialized class williamr@2: // # define _STLP_MEMBER_SPECIALIZATION_BUG williamr@2: williamr@2: // Uncomment if partial order of template functions is not available williamr@2: // # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1 williamr@2: williamr@2: // Uncomment if specialization of methods is not allowed williamr@2: // # define _STLP_NO_METHOD_SPECIALIZATION 1 williamr@2: williamr@2: // Uncomment if full specialization does not use partial spec. syntax : template <> struct .... williamr@2: // # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1 williamr@2: williamr@2: // Uncomment if compiler does not support explicit template arguments for functions williamr@2: // # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS williamr@2: williamr@2: // Uncomment this if your compiler can't inline while(), for() williamr@2: // # define _STLP_LOOP_INLINE_PROBLEMS 1 williamr@2: williamr@2: // Define if the compiler fails to match a template function argument of base williamr@2: // # define _STLP_BASE_MATCH_BUG 1 williamr@2: williamr@2: // Define if the compiler fails to match a template function argument of base williamr@2: // (non-template) williamr@2: //# define _STLP_NONTEMPL_BASE_MATCH_BUG 1 williamr@2: williamr@2: // Define if the compiler rejects outline method definition williamr@2: // explicitly taking nested types/typedefs williamr@2: // # define _STLP_NESTED_TYPE_PARAM_BUG 1 williamr@2: williamr@2: // Compiler requires typename keyword on outline method definition williamr@2: // explicitly taking nested types/typedefs williamr@2: // #define _STLP_TYPENAME_ON_RETURN_TYPE williamr@2: williamr@2: // Define if the baseclass typedefs not visible from outside williamr@2: // # define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1 williamr@2: williamr@2: // if your compiler have serious problems with typedefs, try this one williamr@2: // # define _STLP_BASE_TYPEDEF_BUG 1 williamr@2: williamr@2: // Uncomment if getting errors compiling mem_fun* adaptors williamr@2: // # define _STLP_MEMBER_POINTER_PARAM_BUG 1 williamr@2: williamr@2: // * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a williamr@2: // constant-initializer in the declaration of a static const data member williamr@2: // of integer type. (See section 9.4.2, paragraph 4, of the C++ standard.) williamr@2: // # define _STLP_STATIC_CONST_INIT_BUG williamr@2: williamr@2: // Define if default constructor for builtin integer type fails to initialize it to 0 williamr@2: // In expression like new(&char) char(): williamr@2: //# define _STLP_DEF_CONST_PLCT_NEW_BUG 1 williamr@2: // In default function parameter like _M_method(_Tp __x = _Tp()) williamr@2: //# define _STLP_DEF_CONST_DEF_PARAM_BUG 1 williamr@2: williamr@2: // Defined if constructor williamr@2: // required to explicitly call member's default constructors for const objects williamr@2: // # define _STLP_CONST_CONSTRUCTOR_BUG 1 williamr@2: williamr@2: // Defined if the compiler has trouble calling POD-types constructors/destructors williamr@2: // # define _STLP_TRIVIAL_CONSTRUCTOR_BUG 1 williamr@2: // # define _STLP_TRIVIAL_DESTRUCTOR_BUG 1 williamr@2: williamr@2: // Define if having problems specializing maps/sets with williamr@2: // key type being const williamr@2: // # define _STLP_MULTI_CONST_TEMPLATE_ARG_BUG williamr@2: williamr@2: // Uncomment this to disable -> operators on all iterators williamr@2: // # define _STLP_NO_ARROW_OPERATOR 1 williamr@2: williamr@2: // Uncomment this to disble at() member functions for containers williamr@2: // # define _STLP_NO_AT_MEMBER_FUNCTION 1 williamr@2: williamr@2: // Define this if compiler lacks header williamr@2: // # define _STLP_NO_EXCEPTION_HEADER 1 williamr@2: williamr@2: // Uncomment this if your C library has lrand48() function williamr@2: // # define _STLP_RAND48 1 williamr@2: williamr@2: // Uncomment if native new-style C library headers lile , etc are not available. williamr@2: // # define _STLP_HAS_NO_NEW_C_HEADERS 1 williamr@2: williamr@2: // uncomment if new-style headers is available williamr@2: // # define _STLP_HAS_NEW_NEW_HEADER 1 williamr@2: williamr@2: // uncomment this if and other STD headers put their stuff in ::namespace, williamr@2: // not std:: williamr@2: // # define _STLP_VENDOR_GLOBAL_STD williamr@2: williamr@2: // uncomment this if and the like put stuff in ::namespace, williamr@2: // not std:: williamr@2: // # define _STLP_VENDOR_GLOBAL_CSTD williamr@2: williamr@2: // uncomment this if your compiler consider as ambiguous a function imported within williamr@2: // the stlport namespace and called without scope (:: or std::) williamr@2: // # define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1 williamr@2: williamr@2: // uncomment this if your compiler define all the C math functions C++ additional williamr@2: // overloads in ::namespace and not only in std::. williamr@2: // # define _STLP_HAS_GLOBAL_C_MATH_FUNCTIONS 1 williamr@2: williamr@2: // uncomment this if your compiler has problem with the import of a namespace in williamr@2: // an other one with the using namespace directive williamr@2: // # define _STLP_USING_NAMESPACE_BUG 1 williamr@2: williamr@2: // Edit relative path below (or put full path) to get native williamr@2: // compiler headers included. Default is "../include". williamr@2: // C headers may reside in different directory, so separate macro is provided. williamr@2: // Hint : never install STLport in the directory that ends with "include" williamr@2: # define _STLP_NATIVE_INCLUDE_PATH williamr@2: // # define _STLP_NATIVE_C_INCLUDE_PATH ../include williamr@2: // # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include williamr@2: williamr@2: // This macro constructs header path from directory and name. williamr@2: // You may change it if your compiler does not understand "/". williamr@2: // # define _STLP_MAKE_HEADER(path, header) williamr@2: williamr@2: // This macro constructs native include header path from include path and name. williamr@2: // You may have do define it if experimenting problems with preprocessor williamr@2: // # define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header) williamr@2: williamr@2: // Same for C headers williamr@2: // #define _STLP_NATIVE_C_HEADER(header) williamr@2: williamr@2: // uncomment this if your compiler/platform do not fully support the IEC 559 floating point williamr@2: // numbers specification (also known as IEEE 754 in the US). This specification define the williamr@2: // infinity and NaN (Not a Number) representation. Unit tests should tell you if your compiler williamr@2: // support it. williamr@2: // # define _STLP_NO_IEC559_SUPPORT 1 williamr@2: williamr@2: williamr@2: //========================================================== williamr@2: #endif