stl_mycomp.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /*
  2. * Copyright (c) 1997
  3. * Moscow Center for SPARC Technology
  4. *
  5. * Copyright (c) 1999
  6. * Boris Fomitchev
  7. *
  8. * This material is provided "as is", with absolutely no warranty expressed
  9. * or implied. Any use is at your own risk.
  10. *
  11. * Permission to use or copy this software for any purpose is hereby granted
  12. * without fee, provided the above notices are retained on all copies.
  13. * Permission to modify the code and to distribute modified code is granted,
  14. * provided the above notices are retained, and a notice that the code was
  15. * modified is included with the above copyright notice.
  16. *
  17. */
  18. /*
  19. * Purpose of this file :
  20. *
  21. * A list of COMPILER-SPECIFIC portion of STLport settings.
  22. * This file is provided to help in manual configuration
  23. * of STLport. This file is being included by stlcomp.h
  24. * when STLport is unable to identify your compiler.
  25. * Please remove the error diagnostic below before adjusting
  26. * macros.
  27. *
  28. */
  29. #ifndef _STLP_MYCOMP_H
  30. #define _STLP_MYCOMP_H
  31. #error "Your compiler version is not recognized by STLport. Please edit <stlport/stl/config/stl_mycomp.h>"
  32. //==========================================================
  33. // the values choosen here as defaults try to give
  34. // maximum functionality on the most conservative settings
  35. // Mostly correct guess, change it for Alpha (and other environments
  36. // that has 64-bit "long")
  37. // # define _STLP_UINT32_T unsigned long
  38. // Disables wchar_t functionality
  39. // # define _STLP_NO_WCHAR_T 1
  40. // Define if wchar_t is not an intrinsic type, and is actually a typedef to unsigned short.
  41. // # define _STLP_WCHAR_T_IS_USHORT 1
  42. // Uncomment if long long is available
  43. // # define _STLP_LONG_LONG long long
  44. // Uncomment if long double is not available
  45. // # define _STLP_NO_LONG_DOUBLE 1
  46. // Uncomment this if your compiler does not support "typename" keyword
  47. // # define _STLP_NEED_TYPENAME 1
  48. // Uncomment this if your compiler does not support "mutable" keyword
  49. // # define _STLP_NEED_MUTABLE 1
  50. // Uncomment this if your compiler does not support "explicit" keyword
  51. // # define _STLP_NEED_EXPLICIT 1
  52. // Uncomment if new-style-casts like const_cast<> are not available
  53. // # define _STLP_NO_NEW_STYLE_CASTS 1
  54. // Uncomment this if your compiler does not have "bool" type
  55. // # define _STLP_NO_BOOL 1
  56. // Uncomment this if your compiler does not have "bool" type, but has "bool" keyword reserved
  57. // # define _STLP_DONT_USE_BOOL_TYPEDEF 1
  58. // Uncomment this if your compiler does not have "bool" type, but defines "bool" in <yvals.h>
  59. // # define _STLP_YVALS_H 1
  60. // Uncomment this if your compiler has limited or no default template arguments for classes
  61. // # define _STLP_LIMITED_DEFAULT_TEMPLATES 1
  62. // Uncomment this if your compiler support only complete (not dependent on other parameters)
  63. // types as default parameters for class templates
  64. // # define _STLP_DEFAULT_TYPE_PARAM 1
  65. // Uncomment this if your compiler do not support default parameters in template class methods
  66. // # define _STLP_DONT_SUP_DFLT_PARAM 1
  67. // Uncomment this if your compiler has problem with not-type
  68. // default template parameters
  69. // # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
  70. // Define if compiler has
  71. // trouble with functions getting non-type-parameterized classes as parameters
  72. // # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
  73. // Uncomment this if your compiler does not support namespaces
  74. // # define _STLP_HAS_NO_NAMESPACES 1
  75. // Uncomment if "using" keyword does not work with template types
  76. // # define _STLP_BROKEN_USING_DIRECTIVE 1
  77. // Uncomment this if your compiler does not support exceptions
  78. // # define _STLP_HAS_NO_EXCEPTIONS 1
  79. // Uncomment this when you are able to detect that the user do not
  80. // want to use the exceptions feature.
  81. // # define _STLP_DONT_USE_EXCEPTIONS 1
  82. // Uncomment this if your compiler does not support exception specifications
  83. // # define _STLP_NO_EXCEPTION_SPEC
  84. // Define this if your compiler requires return statement after throw()
  85. // # define _STLP_THROW_RETURN_BUG 1
  86. // Define this if your compiler do not support return of void
  87. // # define _STLP_DONT_RETURN_VOID 1
  88. // Header <new> that comes with the compiler
  89. // does not define bad_alloc exception
  90. // # define _STLP_NO_BAD_ALLOC 1
  91. // Define this if your compiler do not throw bad_alloc from the new operator
  92. // # define _STLP_NEW_DONT_THROW_BAD_ALLOC 1
  93. // Define this if your compiler has no rtti support or if it has been disabled
  94. // # define _STLP_NO_RTTI 1
  95. // Define this if there is no native type_info definition
  96. // # define _STLP_NO_TYPEINFO 1
  97. // Uncomment if member template methods are not available
  98. // # define _STLP_NO_MEMBER_TEMPLATES 1
  99. // Uncomment if member template classes are not available
  100. // # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
  101. // Uncomment if your compiler do not support the std::allocator rebind technique
  102. // This is a special case of bad member template classes support, it is automatically
  103. // defined if _STLP_NO_MEMBER_TEMPLATE_CLASSES is defined.
  104. // # define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE 1
  105. // Uncomment if no "template" keyword should be used with member template classes
  106. // # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
  107. // Compiler does not accept friend declaration qualified with namespace name.
  108. // # define _STLP_NO_QUALIFIED_FRIENDS 1
  109. // Uncomment if partial specialization is not available
  110. // # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
  111. // Define if class being partially specialized require full name (template parameters)
  112. // of itself for method declarations
  113. // # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
  114. // Compiler has problem with qualified specializations (cont int, volatile int...)
  115. // # define _STLP_QUALIFIED_SPECIALIZATION_BUG
  116. // Compiler has problems specializing members of partially
  117. // specialized class
  118. // # define _STLP_MEMBER_SPECIALIZATION_BUG
  119. // Uncomment if partial order of template functions is not available
  120. // # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
  121. // Uncomment if specialization of methods is not allowed
  122. // # define _STLP_NO_METHOD_SPECIALIZATION 1
  123. // Uncomment if full specialization does not use partial spec. syntax : template <> struct ....
  124. // # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
  125. // Uncomment if compiler does not support explicit template arguments for functions
  126. // # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
  127. // Uncomment this if your compiler can't inline while(), for()
  128. // # define _STLP_LOOP_INLINE_PROBLEMS 1
  129. // Define if the compiler fails to match a template function argument of base
  130. // # define _STLP_BASE_MATCH_BUG 1
  131. // Define if the compiler fails to match a template function argument of base
  132. // (non-template)
  133. //# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
  134. // Define if the compiler rejects outline method definition
  135. // explicitly taking nested types/typedefs
  136. // # define _STLP_NESTED_TYPE_PARAM_BUG 1
  137. // Compiler requires typename keyword on outline method definition
  138. // explicitly taking nested types/typedefs
  139. // #define _STLP_TYPENAME_ON_RETURN_TYPE
  140. // Define if the baseclass typedefs not visible from outside
  141. // # define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
  142. // if your compiler have serious problems with typedefs, try this one
  143. // # define _STLP_BASE_TYPEDEF_BUG 1
  144. // Uncomment if getting errors compiling mem_fun* adaptors
  145. // # define _STLP_MEMBER_POINTER_PARAM_BUG 1
  146. // Uncomment if the compiler can't handle a constant-initializer in the
  147. // declaration of a static const data member of integer type.
  148. // (See section 9.4.2, paragraph 4, of the C++ standard.)
  149. // # define _STLP_STATIC_CONST_INIT_BUG
  150. // Uncomment to indicate that the compiler do not like static constant
  151. // definition.
  152. // Meaningfull only if _STLP_STATIC_CONST_INIT_BUG is not defined.
  153. // # define _STLP_NO_STATIC_CONST_DEFINITION
  154. // Define if default constructor for builtin integer type fails to initialize it to 0
  155. // In expression like new(&char) char():
  156. //# define _STLP_DEF_CONST_PLCT_NEW_BUG 1
  157. // In default function parameter like _M_method(_Tp __x = _Tp())
  158. //# define _STLP_DEF_CONST_DEF_PARAM_BUG 1
  159. // Defined if constructor
  160. // required to explicitly call member's default constructors for const objects
  161. // # define _STLP_CONST_CONSTRUCTOR_BUG 1
  162. // Defined if the compiler has trouble calling POD-types constructors/destructors
  163. // # define _STLP_TRIVIAL_CONSTRUCTOR_BUG 1
  164. // # define _STLP_TRIVIAL_DESTRUCTOR_BUG 1
  165. // Define if having problems specializing maps/sets with
  166. // key type being const
  167. // # define _STLP_MULTI_CONST_TEMPLATE_ARG_BUG
  168. // Uncomment this to disable -> operators on all iterators
  169. // # define _STLP_NO_ARROW_OPERATOR 1
  170. // Uncomment this to disble at() member functions for containers
  171. // # define _STLP_NO_AT_MEMBER_FUNCTION 1
  172. // Define this if compiler lacks <exception> header
  173. // # define _STLP_NO_EXCEPTION_HEADER 1
  174. // Uncomment this if your C library has lrand48() function
  175. // # define _STLP_RAND48 1
  176. // Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
  177. // # define _STLP_HAS_NO_NEW_C_HEADERS 1
  178. // uncomment if new-style headers <new> is available
  179. // # define _STLP_HAS_NEW_NEW_HEADER 1
  180. // uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
  181. // not std::
  182. // # define _STLP_VENDOR_GLOBAL_STD
  183. // uncomment this if <cstdio> and the like put stuff in ::namespace,
  184. // not std::
  185. // # define _STLP_VENDOR_GLOBAL_CSTD
  186. // uncomment this if your compiler consider as ambiguous a function imported within
  187. // the stlport namespace and called without scope (:: or std::)
  188. // # define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
  189. // uncomment this if your compiler define all the C math functions C++ additional
  190. // overloads in ::namespace and not only in std::.
  191. // # define _STLP_HAS_GLOBAL_C_MATH_FUNCTIONS 1
  192. // Edit relative path below (or put full path) to get native
  193. // compiler headers included. Default is "../include".
  194. // C headers may reside in different directory, so separate macro is provided.
  195. // Hint : never install STLport in the directory that ends with "include"
  196. // # define _STLP_NATIVE_INCLUDE_PATH ../include
  197. // # define _STLP_NATIVE_C_INCLUDE_PATH ../include
  198. // # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
  199. // This macro constructs header path from directory and name.
  200. // You may change it if your compiler does not understand "/".
  201. // # define _STLP_MAKE_HEADER(path, header) <path/header>
  202. // This macro constructs native include header path from include path and name.
  203. // You may have do define it if experimenting problems with preprocessor
  204. // # define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
  205. // Same for C headers
  206. // #define _STLP_NATIVE_C_HEADER(header)
  207. //==========================================================
  208. #endif