stdcpp/include/config/stl_bc.h
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 // STLport configuration file
       
     2 // It is internal STLport header - DO NOT include it directly
       
     3 
       
     4 
       
     5 // versions ?
       
     6 # if defined(_STLP_DESIGNATED_DLL)
       
     7 #   define _STLP_CALL __cdecl __export
       
     8 # elif defined(_RTLDLL)
       
     9 #   define  _STLP_CALL __cdecl __import
       
    10 # else
       
    11 #   define  _STLP_CALL __cdecl
       
    12 # endif
       
    13 
       
    14 # define _USE_STLP
       
    15 # define _STLP_USE_OWN_MBSTATE_T
       
    16 // # define _STLP_USE_OWN_NAMESPACE
       
    17 # define _STLP_DLLEXPORT_NEEDS_PREDECLARATION
       
    18 # define _STLP_OPERATOR_SPEC_NEEDS_TEMPLATE_ARGS
       
    19 
       
    20 // most of <exception> contents is still in global namespace
       
    21 // # define _STLP_VENDOR_UNEXPECTED_STD
       
    22 
       
    23 // <limits> problem
       
    24 # define _STLP_STATIC_CONST_INIT_BUG
       
    25 
       
    26 // <bitset> problems
       
    27 # define _STLP_MEMBER_SPECIALIZATION_BUG
       
    28 # define  _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1
       
    29 
       
    30 #if ( __BORLANDC__ < 0x540 )
       
    31 // Borland C++ Builder 3 (?)
       
    32 // those are assumptions, if some of them actually work, please let me know
       
    33 // #  define _STLP_STATIC_CONST_INIT_BUG 1
       
    34 // #  define _STLP_THROW_RETURN_BUG 1
       
    35 #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
       
    36 #  define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
       
    37 #  define _STLP_NO_TYPENAME_ON_RETURN_TYPE
       
    38 #else
       
    39 #  define _STLP_LONG_LONG  __int64
       
    40 #endif
       
    41 
       
    42 // BCB 2 or less (Borland 5.02)
       
    43 #if ( __BORLANDC__ < 0x530 )
       
    44 
       
    45 #  define _STLP_NO_OWN_IOSTREAMS
       
    46 #  undef  _STLP_OWN_IOSTREAMS
       
    47 
       
    48 #  define _STLP_GLOBAL_VENDOR_CSTD 1
       
    49 #  define _STLP_HAS_NO_NEW_IOSTREAMS 1
       
    50 #  define _STLP_HAS_NO_NEW_C_HEADERS 1
       
    51 
       
    52 #  define _STLP_NO_MEMBER_TEMPLATES 1
       
    53 #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
       
    54 #  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
       
    55 #  define _STLP_NO_FRIEND_TEMPLATES 1
       
    56 #  define _STLP_NO_QUALIFIED_FRIENDS 1
       
    57 #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
       
    58 #  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
       
    59 #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
       
    60 
       
    61 #  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
       
    62 
       
    63 #  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
       
    64 #  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
       
    65 #  define _STLP_MEMBER_SPECIALIZATION_BUG
       
    66 #  define _STLP_NO_EXCEPTION_HEADER 1
       
    67 #  define _STLP_NO_EXCEPTION_SPEC 1
       
    68 
       
    69 #  define _STLP_NO_BAD_ALLOC 1
       
    70 #  define _STLP_NO_ARROW_OPERATOR 1
       
    71 
       
    72 typedef char    mbstate_t;
       
    73 
       
    74 #  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
       
    75 #  define _STLP_NO_TYPEINFO
       
    76 #  define _STLP_NO_METHOD_SPECIALIZATION
       
    77 
       
    78 #endif
       
    79 
       
    80 // Borland 5.0x
       
    81 #if ( __BORLANDC__ < 0x520 )
       
    82 
       
    83 #  define _STLP_BROKEN_USING_DIRECTIVE 1
       
    84 #  define _STLP_EXPORT_KEYWORD _export
       
    85 #  define _STLP_IMPORT_KEYWORD _import
       
    86 #  define _STLP_EXPORT_TEMPLATE_KEYWORD _export
       
    87 #  define _STLP_IMPORT_TEMPLATE_KEYWORD _import
       
    88 #endif
       
    89 
       
    90 #if ( __BORLANDC__ < 0x501 )
       
    91 #   define  _STLP_NONTEMPL_BASE_MATCH_BUG 1
       
    92 #   define  _STLP_NO_WCHAR_T 1
       
    93 #endif
       
    94 
       
    95 // 4.x
       
    96 #if ( __BORLANDC__ < 0x500 )
       
    97 #   define _STLP_NESTED_TYPE_PARAM_BUG 1
       
    98 #   define _STLP_STATIC_ARRAY_BUG 1
       
    99 #   define _STLP_NO_BOOL 1
       
   100 #   define _STLP_HAS_NO_NAMESPACES 1
       
   101 #   define _STLP_NEED_TYPENAME 1
       
   102 #   define _STLP_NEED_EXPLICIT 1
       
   103 #   define _STLP_NEED_MUTABLE 1
       
   104 #   define _STLP_NO_WCHAR_T 1
       
   105 #endif
       
   106 
       
   107 // auto enable thread safety and exceptions:
       
   108 #   ifndef _CPPUNWIND
       
   109 #     define _STLP_HAS_NO_EXCEPTIONS
       
   110 #   endif
       
   111 
       
   112 #   if defined ( __MT__ ) && !defined (_NOTHREADS) && !defined (_REENTRANT)
       
   113 #     define _REENTRANT 1
       
   114 #   endif
       
   115 
       
   116 #  if defined ( __DEBUG ) && ( __DEBUG > 1 )
       
   117 #   define _STLP_DEBUG
       
   118 #  endif
       
   119 
       
   120 #  define _STLP_LIB_BASENAME "stlp"
       
   121 
       
   122 # if (__BORLANDC__ < 0x540)
       
   123 
       
   124 #  define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
       
   125 #  define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
       
   126 #  define _STLP_IMPORT_TEMPLATE_KEYWORD  extern
       
   127 #  define _STLP_EXPORT_TEMPLATE_KEYWORD
       
   128 
       
   129 #  define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
       
   130 #  define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
       
   131 
       
   132 #   if !defined (_STLP_NO_OWN_IOSTREAMS)
       
   133 
       
   134 #    if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
       
   135      || defined (_STLP_USE_DYNAMIC_LIB) ) \
       
   136        && ! defined (_STLP_USE_STATIC_LIB)
       
   137 #      undef  _STLP_USE_DECLSPEC
       
   138 #      define _STLP_USE_DECLSPEC
       
   139 #     endif
       
   140 #   endif
       
   141 
       
   142 # else
       
   143 
       
   144 # define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
       
   145 # define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
       
   146 
       
   147 # define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
       
   148 # define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
       
   149 
       
   150 #  if !defined (_STLP_NO_OWN_IOSTREAMS)
       
   151 
       
   152 #    if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
       
   153      || defined(_AFXDLL) || defined (_STLP_USE_DYNAMIC_LIB) )
       
   154 #      undef  _STLP_USE_DECLSPEC
       
   155 #      define _STLP_USE_DECLSPEC 1
       
   156 #    endif
       
   157 
       
   158 #  ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
       
   159 #   define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
       
   160 #  endif
       
   161 #  define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
       
   162 
       
   163 # if (__BORLANDC__ >= 0x560) && ! defined (_STLP_OWN_IOSTREAMS)
       
   164 // #  define _STLP_IS_NATIVE_LIB
       
   165 #  define _STLP_NATIVE_INCLUDE_PATH ../include/oldstl
       
   166 #  define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include/oldstl
       
   167 #  define _STLP_NATIVE_C_INCLUDE_PATH ../include/oldstl
       
   168 #  define _STLP_NATIVE_CPP_RUNTIME_PATH ../include/oldstl
       
   169 # endif
       
   170 
       
   171 # ifndef __BUILDING_STLPORT
       
   172 #  ifdef _STLP_DEBUG
       
   173 #   ifdef _MT
       
   174 #    ifdef _RTLDLL
       
   175 #      pragma comment(lib,"stlpmt_stldebug45.lib")
       
   176 #    else
       
   177 #     pragma comment(lib,"stlpmt_stldebugst.lib")
       
   178 #    endif
       
   179 #   else
       
   180 #    ifdef _RTLDLL
       
   181 #      pragma comment(lib,"stlp_stldebug45.lib")
       
   182 #    else
       
   183 #     pragma comment(lib,"stlp_stldebugst.lib")
       
   184 #    endif
       
   185 #   endif
       
   186 #  else
       
   187 #   ifdef _MT
       
   188 #    ifdef _RTLDLL
       
   189 #      pragma comment(lib,"stlpmt45.lib")
       
   190 #    else
       
   191 #     pragma comment(lib,"stlpmtst.lib")
       
   192 #    endif
       
   193 #  else
       
   194 #    ifdef _RTLDLL
       
   195 #      pragma comment(lib,"stlp45.lib")
       
   196 #    else
       
   197 #     pragma comment(lib,"stlpst.lib")
       
   198 #    endif
       
   199 #   endif
       
   200 #  endif
       
   201 # endif
       
   202 
       
   203 #  endif /* _STLP_OWN_IOSTREAMS */
       
   204 # endif