123
This commit is contained in:
33
STLPORT/stlport/config/_epilog.h
Normal file
33
STLPORT/stlport/config/_epilog.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__)
|
||||
|
||||
# if defined (__BORLANDC__)
|
||||
# pragma option pop
|
||||
# pragma option -w-8062
|
||||
# else
|
||||
# if !(defined (_STLP_MSVC) && (_STLP_MSVC < 1200))
|
||||
# pragma warning (pop)
|
||||
# endif
|
||||
# pragma pack (pop)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
|
||||
|
||||
# pragma reset woff 1174
|
||||
# pragma reset woff 1375
|
||||
# pragma reset woff 1209
|
||||
// from iterator_base.h
|
||||
# pragma reset woff 1183
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
|
||||
# ifdef __PRAGMA_ENVIRONMENT
|
||||
# pragma __environment __restore
|
||||
# endif
|
||||
|
||||
#elif defined(__IBMCPP__)
|
||||
|
||||
#pragma info(restore)
|
||||
|
||||
#endif
|
||||
|
||||
20
STLPORT/stlport/config/_msvc_warnings_off.h
Normal file
20
STLPORT/stlport/config/_msvc_warnings_off.h
Normal file
@@ -0,0 +1,20 @@
|
||||
# if (_MSC_VER > 1000)
|
||||
// #pragma warning ( disable : 4251 ) // ignore template classes being exported in .dll's
|
||||
/*
|
||||
* "this used in base member initializer list"
|
||||
* arrow operator warning
|
||||
* copy constr & assignment cannot be generated
|
||||
* "forcing value to bool 'true' or 'false'
|
||||
* typedef used instaead of full type
|
||||
* 4018 : signed/unsigned mismatch, 4146 - result still unsigned
|
||||
* 4100: unreferenced formal parameter
|
||||
* 4663: C++ language change: to explicitly specialize class template 'identifier' use the following syntax
|
||||
*/
|
||||
# pragma warning ( disable : 4355 4284 4231 4511 4512 4097 4786 4800 4018 4146 4244 4514 4127 4100 4663)
|
||||
# pragma warning ( disable : 4245 4514 4660) // conversion from enum to unsigned int signed/unsigned mismatch
|
||||
# if (_MSC_VER > 1200)
|
||||
// multiple copy constructors/assignment operators specified,
|
||||
// with member templates are bogus...
|
||||
# pragma warning ( disable : 4521 4522)
|
||||
# endif
|
||||
# endif
|
||||
46
STLPORT/stlport/config/_prolog.h
Normal file
46
STLPORT/stlport/config/_prolog.h
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
#if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__)
|
||||
|
||||
# if defined (__BORLANDC__)
|
||||
# if (__BORLANDC__ >= 0x510)
|
||||
# pragma option push -Vx- -Ve- -a8 -b -pc -w-inl -w-aus -w-sig -w-8062 -w-8041 -w-8008 -w-8012 -w-8027 -w-8057 -w-8091 -w-8092 -w-8066 /* P_O_1 */
|
||||
# endif
|
||||
# else
|
||||
# if !(defined (_STLP_MSVC) && (_STLP_MSVC < 1200))
|
||||
# pragma warning(push)
|
||||
# endif
|
||||
# pragma pack(push,8)
|
||||
# include <config/_msvc_warnings_off.h>
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
|
||||
|
||||
#pragma set woff 1209
|
||||
#pragma set woff 1174
|
||||
#pragma set woff 1375
|
||||
// from iterator_base.h
|
||||
#pragma set woff 1183
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
|
||||
# ifdef __PRAGMA_ENVIRONMENT
|
||||
# pragma __environment __save
|
||||
# pragma __environment __header_defaults
|
||||
# endif
|
||||
|
||||
#elif defined(__IBMCPP__)
|
||||
// supress EDC3130: A constant is being used as a conditional expression
|
||||
#pragma info(nocnd)
|
||||
|
||||
#elif defined (__HP_aCC)
|
||||
/* _REENTRANT selects Posix 1c threads unless draft4 selected.
|
||||
* * This usage is obsolescent, "-D_POSIX_C_SOURCE=199506" is preferred */
|
||||
# if 0 /* defined (_REENTRANT) && ! defined (_POSIX_C_SOURCE) */
|
||||
# define _POSIX_C_SOURCE 199506
|
||||
# endif
|
||||
#elif defined (__WATCOMCPLUSPLUS__)
|
||||
# pragma warning 604 10 // must lookahead to determine...
|
||||
# pragma warning 594 10 // resolved as declaration/type
|
||||
# pragma warning 595 10 // resolved as an expression
|
||||
#endif
|
||||
12
STLPORT/stlport/config/new_compiler/README
Normal file
12
STLPORT/stlport/config/new_compiler/README
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
README file for "stlport/config/new_compiler"
|
||||
|
||||
|
||||
This directory contains "configure" script which will help you to
|
||||
create config file for a new compiler. Please refer to HTML documentation
|
||||
at www.stlport.org/doc for details.
|
||||
NOTE : stlconf.h produced by "configure" is NOT suitable for immediate use
|
||||
as platform-specific configuration file as it does not set several important
|
||||
macros. However, it is a good starting point.
|
||||
|
||||
Boris Fomitchev.
|
||||
3644
STLPORT/stlport/config/new_compiler/configure
vendored
Normal file
3644
STLPORT/stlport/config/new_compiler/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1424
STLPORT/stlport/config/new_compiler/configure.in
Normal file
1424
STLPORT/stlport/config/new_compiler/configure.in
Normal file
File diff suppressed because it is too large
Load Diff
133
STLPORT/stlport/config/new_compiler/stlconf.h.in
Normal file
133
STLPORT/stlport/config/new_compiler/stlconf.h.in
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _STLP_STLCONF_H
|
||||
# define _STLP_STLCONF_H
|
||||
|
||||
# undef __AUTO_CONFIGURED
|
||||
|
||||
//==========================================================
|
||||
// Getting proper values of autoconf flags
|
||||
// if you ran 'configure', __AUTO_CONFIGURED is set to 1 and
|
||||
// specific compiler features will be used.
|
||||
// Otherwise, the <stlcomp.h> header will be included for per-version
|
||||
// features recognition.
|
||||
//==========================================================
|
||||
# if defined (__AUTO_CONFIGURED)
|
||||
// auto-configured section
|
||||
|
||||
# undef _STLP_NO_EXCEPTIONS
|
||||
# undef _STLP_NO_NAMESPACES
|
||||
# undef _STLP_NO_RELOPS_NAMESPACE
|
||||
# undef _STLP_NO_NEW_NEW_HEADER
|
||||
|
||||
# undef _STLP_NO_NEW_IOSTREAMS
|
||||
|
||||
// select threads strategy
|
||||
# undef _PTHREADS
|
||||
# undef _NOTHREADS
|
||||
|
||||
// select SGI-style alloc instead of allocator<T>
|
||||
# undef _STLP_USE_SGI_ALLOCATORS
|
||||
|
||||
// select allocation method you like
|
||||
# undef _STLP_USE_MALLOC
|
||||
# undef _STLP_USE_NEWALLOC
|
||||
|
||||
// this one is not mandatory, just enabled
|
||||
# undef _STLP_USE_DEFALLOC
|
||||
|
||||
// define _STLP_USE_ABBREVS if your linker has trouble with long
|
||||
// external symbols
|
||||
# undef _STLP_USE_ABBREVS
|
||||
|
||||
|
||||
// unsigned 32-bit integer type
|
||||
# define _STLP_UINT32_T unsigned
|
||||
# undef _STLP_NO_BOOL
|
||||
# undef _STLP_DONT_USE_BOOL_TYPEDEF
|
||||
# undef _STLP_YVALS_H
|
||||
# undef _STLP_LIMITED_DEFAULT_TEMPLATES
|
||||
# undef _STLP_DEFAULT_TYPE_PARAM
|
||||
# undef _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# undef _STLP_RAND48
|
||||
# undef _STLP_LOOP_INLINE_PROBLEMS
|
||||
|
||||
# undef _STLP_HAS_NO_NAMESPACES
|
||||
|
||||
# undef _STLP_NEED_TYPENAME
|
||||
# undef _STLP_NEED_EXPLICIT
|
||||
# undef _STLP_HAS_NO_EXCEPTIONS
|
||||
# undef _STLP_NO_EXCEPTION_SPEC
|
||||
# undef _STLP_WEAK_ATTRIBUTE
|
||||
# undef _STLP_BASE_MATCH_BUG
|
||||
# undef _STLP_NONTEMPL_BASE_MATCH_BUG
|
||||
# undef _STLP_NESTED_TYPE_PARAM_BUG
|
||||
# undef _STLP_NO_ARROW_OPERATOR
|
||||
# undef _STLP_UNINITIALIZABLE_PRIVATE
|
||||
# undef _STLP_BASE_TYPEDEF_BUG
|
||||
# undef _STLP_BASE_TYPEDEF_OUTSIDE_BUG
|
||||
# undef _STLP_CONST_CONSTRUCTOR_BUG
|
||||
|
||||
# undef _STLP_NO_NEW_STYLE_CASTS
|
||||
# undef _STLP_NO_WCHAR_T
|
||||
# undef _STLP_WCHAR_T_IS_USHORT
|
||||
# undef _STLP_LONG_LONG
|
||||
# undef _STLP_NO_LONG_DOUBLE
|
||||
# undef _STLP_NEED_MUTABLE
|
||||
# undef _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
# undef _STLP_NO_BAD_ALLOC
|
||||
# undef _STLP_DEBUG_ALLOC
|
||||
# undef _STLP_NO_MEMBER_TEMPLATES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
# undef _STLP_NO_FRIEND_TEMPLATES
|
||||
# undef _STLP_NO_QUALIFIED_FRIENDS
|
||||
# undef _STLP_NO_CLASS_PARTIAL_SPECIALIZATION
|
||||
# undef _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
|
||||
# undef _STLP_AUTOMATIC_TYPE_TRAITS
|
||||
# undef _STLP_MEMBER_POINTER_PARAM_BUG
|
||||
# undef _STLP_NON_TYPE_TMPL_PARAM_BUG
|
||||
# undef _STLP_NO_DEFAULT_NON_TYPE_PARAM
|
||||
# undef _STLP_NO_METHOD_SPECIALIZATION
|
||||
# undef _STLP_STATIC_ARRAY_BUG
|
||||
# undef _STLP_STATIC_CONST_INIT_BUG
|
||||
# undef _STLP_TRIVIAL_CONSTRUCTOR_BUG
|
||||
# undef _STLP_TRIVIAL_DESTRUCTOR_BUG
|
||||
# undef _STLP_BROKEN_USING_DIRECTIVE
|
||||
# undef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
# undef _STLP_NO_EXCEPTION_HEADER
|
||||
# undef _STLP_DEFAULT_CONSTRUCTOR_BUG
|
||||
|
||||
# undef _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# undef _STLP_HAS_NO_NEW_C_HEADERS
|
||||
# undef _STLP_STATIC_CONST_INIT_BUG
|
||||
// new ones
|
||||
# undef _STLP_THROW_RETURN_BUG
|
||||
// unimp
|
||||
# undef _STLP_LINK_TIME_INSTANTIATION
|
||||
# undef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
// unimp
|
||||
# undef _STLP_NO_TEMPLATE_CONVERSIONS
|
||||
# endif /* AUTO_CONFIGURED */
|
||||
|
||||
//==========================================================
|
||||
|
||||
|
||||
#endif /* __STLCONF_H */
|
||||
|
||||
3
STLPORT/stlport/config/new_compiler/unconfigure
Normal file
3
STLPORT/stlport/config/new_compiler/unconfigure
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cp stlconf.h.in stlconf.h
|
||||
echo "STLport unconfigured."
|
||||
32
STLPORT/stlport/config/stl_apcc.h
Normal file
32
STLPORT/stlport/config/stl_apcc.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// STLport config file for Apogee 4.x
|
||||
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
// # define _STLP_RAND48 1
|
||||
# define _STLP_LONG_LONG long long
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
|
||||
# undef _STLP_LINK_TIME_INSTANTIATION
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
|
||||
# ifdef __STDLIB
|
||||
# undef _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# undef _STLP_NO_NEW_C_HEADERS
|
||||
# undef _STLP_NO_NEW_NEW_HEADER
|
||||
# undef _STLP_NO_BAD_ALLOC
|
||||
# undef _STLP_LONG_LONG
|
||||
# else
|
||||
# undef _STLP_NO_EXCEPTION_SPEC
|
||||
# define _STLP_NO_EXCEPTION_SPEC 1
|
||||
# endif
|
||||
|
||||
|
||||
112
STLPORT/stlport/config/stl_apple.h
Normal file
112
STLPORT/stlport/config/stl_apple.h
Normal file
@@ -0,0 +1,112 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
// common configuration settings for Apple MPW MrCpp / SCpp
|
||||
|
||||
#if defined(__MRC__) && __MRC__ < 0x500
|
||||
# error Apple's MPW MrCpp v.5.0.0 or better compiler required
|
||||
#endif
|
||||
#if defined(__SC__) && __SC__ < 0x890
|
||||
# error Apple's MPW SCpp v.8.9.0 or better compiler required
|
||||
#endif
|
||||
|
||||
#ifdef qMacApp
|
||||
# ifndef __CONDITIONALMACROS__ // skip including ConditionalMacros_AC.h if ConditionalMacros.h is already included
|
||||
# include <CoreSwitches_AC.h>
|
||||
# include <ConditionalMacros_AC.h>
|
||||
# include <Types_AC.h>
|
||||
# define _STLP_FILE__ _FILE_AC
|
||||
# define _STLP_DEBUG_MESSAGE
|
||||
# define __stl_debug_message ProgramBreak_AC
|
||||
# include <ConditionalMacros.h>
|
||||
# endif
|
||||
# include <Types.h>
|
||||
#else
|
||||
# include <ConditionalMacros.h>
|
||||
# include <Types.h>
|
||||
#endif
|
||||
|
||||
#define _STLP_UINT32_T UInt32
|
||||
typedef int wint_t;
|
||||
|
||||
#ifndef TYPE_BOOL
|
||||
# error <ConditionalMacros.h> must be included. (TYPE_BOOL)
|
||||
#endif
|
||||
#if !TYPE_BOOL
|
||||
# define _STLP_NO_BOOL
|
||||
# define _STLP_DONT_USE_BOOL_TYPEDEF
|
||||
#endif
|
||||
|
||||
#ifndef TYPE_LONGLONG
|
||||
# error <ConditionalMacros.h> must be included. (TYPE_LONGLONG)
|
||||
#endif
|
||||
#if TYPE_LONGLONG
|
||||
# define _STLP_LONG_LONG long long
|
||||
#endif
|
||||
|
||||
#if !__option(exceptions)
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
#define _STLP_DEBUG_MESSAGE_POST DebugStr("\pSTL diagnosis issued. See 'stderr' for detail.");
|
||||
#define _STLP_ASSERT_MSG_TRAILER " "
|
||||
|
||||
#ifdef _STLP_DEBUG
|
||||
# define _STLP_THROW(x) (DebugStr("\pSTL is about to throw exception: "#x),throw x)
|
||||
#endif
|
||||
|
||||
#if defined(__MRC__)
|
||||
# ifndef __spillargs
|
||||
# define __spillargs 1 // MrCpp requires this symbol to be defined as 1 to properly handle va_start; ref.[ file stdarg.h; line 26 ]
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(__SC__)
|
||||
#define _STLP_VENDOR_LONG_DOUBLE_MATH //*TY 12/03/2000 - SCpp's native math type is long double
|
||||
#endif
|
||||
|
||||
#ifndef _STLP_NATIVE_INCLUDE_PATH
|
||||
# if __option(unix_includes)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CIncludes // expects the alias to {CIncludes} under the same folder as {STL}
|
||||
# else
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ::CIncludes // expects the alias to {CIncludes} under the same folder as {STL}
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(_STLP_MAKE_HEADER)
|
||||
# if !__option(unix_includes)
|
||||
# define _STLP_MAKE_HEADER(path, header) <path:header> // Mac uses ":" for directory delimiter
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# define _STLD _DBG // to keep the length of generated symbols within the compiler limitation
|
||||
|
||||
#define _STLP_OWN_IOSTREAMS
|
||||
#define _STLP_USE_STDIO_IO 1 //*TY 02/24/2000 - see also ; ref.[ file _fstream.h; line 36 ]
|
||||
#define _STLP_NO_THREADS //*TY 12/17/2000 - multi-thread capability not explored, yet.
|
||||
#undef _REENTRANT //*ty 11/24/2001 - to make sure no thread facility is activated
|
||||
#define _NOTHREADS //*ty 12/07/2001 -
|
||||
|
||||
// native library limitations
|
||||
#define _STLP_VENDOR_GLOBAL_STD // mpw's c++ libs do not utilize namespace std yet
|
||||
#define _STLP_NO_BAD_ALLOC // known limitation
|
||||
#define _STLP_HAS_NO_NEW_C_HEADERS // known limitation
|
||||
#define _STLP_NO_NEW_NEW_HEADER // known limitation
|
||||
#define _STLP_HAS_NO_NEW_IOSTREAMS // known limitation
|
||||
#define _STLP_NO_NATIVE_MBSTATE_T // known limitation
|
||||
#define _STLP_NO_NATIVE_WIDE_FUNCTIONS // known limitation
|
||||
#define _STLP_NO_NATIVE_WIDE_STREAMS // known limitation
|
||||
#define _STLP_INCOMPLETE_EXCEPTION_HEADER // known limitation
|
||||
#define _STLP_BROKEN_EXCEPTION_CLASS // known limitation
|
||||
|
||||
// compiler limitations
|
||||
# define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
|
||||
|
||||
# define _STLP_MPWFIX_TRY try{ //*TY 06/01/2000 - exception handling bug workaround
|
||||
# define _STLP_MPWFIX_CATCH }catch(...){throw;} //*TY 06/01/2000 - exception handling bug workaround
|
||||
# define _STLP_MPWFIX_CATCH_ACTION(action) }catch(...){action;throw;} //*TY 06/01/2000 - exception handling bug workaround
|
||||
# define _STLP_THROW_RETURN_BUG // known limitation
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION // known limitation
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX // known limitation
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER // known limitation
|
||||
# define _STLP_NO_RELOPS_NAMESPACE // known limitation
|
||||
// end of stl_apple.h
|
||||
60
STLPORT/stlport/config/stl_as400.h
Normal file
60
STLPORT/stlport/config/stl_as400.h
Normal file
@@ -0,0 +1,60 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
// AS/400 C++ config
|
||||
|
||||
# ifdef _REENTRANT
|
||||
# define _PTHREADS
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
|
||||
# define _STLP_NO_BOOL
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES
|
||||
|
||||
# define _STLP_HAS_NO_NAMESPACES
|
||||
# define _STLP_NEED_TYPENAME
|
||||
# define _STLP_NEED_EXPLICIT
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
# define _STLP_NO_EXCEPTION_SPEC
|
||||
# define _STLP_NO_ARROW_OPERATOR
|
||||
# define _STLP_NO_NEW_STYLE_CASTS
|
||||
|
||||
# define _STLP_NEED_MUTABLE
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
# define _STLP_NO_BAD_ALLOC
|
||||
# define _STLP_NO_MEMBER_TEMPLATES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
# define _STLP_NO_FRIEND_TEMPLATES
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
|
||||
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
|
||||
// # define _STLP_NO_EXCEPTION_HEADER
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS
|
||||
|
||||
# define _STLP_STATIC_CONST_INIT_BUG
|
||||
# define _STLP_THROW_RETURN_BUG
|
||||
# define _STLP_LINK_TIME_INSTANTIATION
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS
|
||||
|
||||
# define _STLP_UNINITIALIZABLE_PRIVATE 1
|
||||
# define _STLP_STATIC_ARRAY_BUG 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_TRIVIAL_DESTRUCTOR_BUG 1
|
||||
|
||||
# if defined(_LONG_LONG)
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
// # define _STLP_LONG_DOUBLE 1
|
||||
# if defined(_PTHREADS)
|
||||
# define _MULTI_THREADED
|
||||
# endif
|
||||
// fbp : to fix __partition() problem
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
204
STLPORT/stlport/config/stl_bc.h
Normal file
204
STLPORT/stlport/config/stl_bc.h
Normal file
@@ -0,0 +1,204 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
|
||||
// versions ?
|
||||
# if defined(_STLP_DESIGNATED_DLL)
|
||||
# define _STLP_CALL __cdecl __export
|
||||
# elif defined(_RTLDLL)
|
||||
# define _STLP_CALL __cdecl __import
|
||||
# else
|
||||
# define _STLP_CALL __cdecl
|
||||
# endif
|
||||
|
||||
# define _USE_STLP
|
||||
# define _STLP_USE_OWN_MBSTATE_T
|
||||
// # define _STLP_USE_OWN_NAMESPACE
|
||||
# define _STLP_DLLEXPORT_NEEDS_PREDECLARATION
|
||||
# define _STLP_OPERATOR_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
|
||||
// most of <exception> contents is still in global namespace
|
||||
// # define _STLP_VENDOR_UNEXPECTED_STD
|
||||
|
||||
// <limits> problem
|
||||
# define _STLP_STATIC_CONST_INIT_BUG
|
||||
|
||||
// <bitset> problems
|
||||
# define _STLP_MEMBER_SPECIALIZATION_BUG
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1
|
||||
|
||||
#if ( __BORLANDC__ < 0x540 )
|
||||
// Borland C++ Builder 3 (?)
|
||||
// those are assumptions, if some of them actually work, please let me know
|
||||
// # define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
// # define _STLP_THROW_RETURN_BUG 1
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_NO_TYPENAME_ON_RETURN_TYPE
|
||||
#else
|
||||
# define _STLP_LONG_LONG __int64
|
||||
#endif
|
||||
|
||||
// BCB 2 or less (Borland 5.02)
|
||||
#if ( __BORLANDC__ < 0x530 )
|
||||
|
||||
# define _STLP_NO_OWN_IOSTREAMS
|
||||
# undef _STLP_OWN_IOSTREAMS
|
||||
|
||||
# define _STLP_GLOBAL_VENDOR_CSTD 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_MEMBER_SPECIALIZATION_BUG
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_NO_EXCEPTION_SPEC 1
|
||||
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
|
||||
typedef char mbstate_t;
|
||||
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_NO_TYPEINFO
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION
|
||||
|
||||
#endif
|
||||
|
||||
// Borland 5.0x
|
||||
#if ( __BORLANDC__ < 0x520 )
|
||||
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_EXPORT_KEYWORD _export
|
||||
# define _STLP_IMPORT_KEYWORD _import
|
||||
# define _STLP_EXPORT_TEMPLATE_KEYWORD _export
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD _import
|
||||
#endif
|
||||
|
||||
#if ( __BORLANDC__ < 0x501 )
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
#endif
|
||||
|
||||
// 4.x
|
||||
#if ( __BORLANDC__ < 0x500 )
|
||||
# define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
# define _STLP_STATIC_ARRAY_BUG 1
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
#endif
|
||||
|
||||
// auto enable thread safety and exceptions:
|
||||
# ifndef _CPPUNWIND
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
# endif
|
||||
|
||||
# if defined ( __MT__ ) && !defined (_NOTHREADS) && !defined (_REENTRANT)
|
||||
# define _REENTRANT 1
|
||||
# endif
|
||||
|
||||
# if defined ( __DEBUG ) && ( __DEBUG > 1 )
|
||||
# define _STLP_DEBUG
|
||||
# endif
|
||||
|
||||
# define _STLP_LIB_BASENAME "stlp"
|
||||
|
||||
# if (__BORLANDC__ < 0x540)
|
||||
|
||||
# define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD extern
|
||||
# define _STLP_EXPORT_TEMPLATE_KEYWORD
|
||||
|
||||
# define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
|
||||
# if !defined (_STLP_NO_OWN_IOSTREAMS)
|
||||
|
||||
# if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
|
||||
|| defined (_STLP_USE_DYNAMIC_LIB) ) \
|
||||
&& ! defined (_STLP_USE_STATIC_LIB)
|
||||
# undef _STLP_USE_DECLSPEC
|
||||
# define _STLP_USE_DECLSPEC
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# else
|
||||
|
||||
# define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
|
||||
# define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
|
||||
# if !defined (_STLP_NO_OWN_IOSTREAMS)
|
||||
|
||||
# if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
|
||||
|| defined(_AFXDLL) || defined (_STLP_USE_DYNAMIC_LIB) )
|
||||
# undef _STLP_USE_DECLSPEC
|
||||
# define _STLP_USE_DECLSPEC 1
|
||||
# endif
|
||||
|
||||
# ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
|
||||
# endif
|
||||
# define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
|
||||
|
||||
# if (__BORLANDC__ >= 0x560) && ! defined (_STLP_OWN_IOSTREAMS)
|
||||
// # define _STLP_IS_NATIVE_LIB
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include/oldstl
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include/oldstl
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include/oldstl
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_PATH ../include/oldstl
|
||||
# endif
|
||||
|
||||
# ifndef __BUILDING_STLPORT
|
||||
# ifdef _STLP_DEBUG
|
||||
# ifdef _MT
|
||||
# ifdef _RTLDLL
|
||||
# pragma comment(lib,"stlpmt_stldebug45.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlpmt_stldebugst.lib")
|
||||
# endif
|
||||
# else
|
||||
# ifdef _RTLDLL
|
||||
# pragma comment(lib,"stlp_stldebug45.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp_stldebugst.lib")
|
||||
# endif
|
||||
# endif
|
||||
# else
|
||||
# ifdef _MT
|
||||
# ifdef _RTLDLL
|
||||
# pragma comment(lib,"stlpmt45.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlpmtst.lib")
|
||||
# endif
|
||||
# else
|
||||
# ifdef _RTLDLL
|
||||
# pragma comment(lib,"stlp45.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlpst.lib")
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# endif /* _STLP_OWN_IOSTREAMS */
|
||||
# endif
|
||||
209
STLPORT/stlport/config/stl_como.h
Normal file
209
STLPORT/stlport/config/stl_como.h
Normal file
@@ -0,0 +1,209 @@
|
||||
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
|
||||
# define _STLP_UINT32_T unsigned int
|
||||
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS
|
||||
// # define _STLP_VENDOR_GLOBAL_EXCEPT_STD
|
||||
// # define _STLP_LONG_LONG
|
||||
|
||||
|
||||
//
|
||||
// ADDITIONS FOR COMEAU C++, made by Comeau Computing.
|
||||
// We can be reached through comeau@comeaucomputing.com
|
||||
// You shouldn't need to change anything below here for Comeau C++.
|
||||
// If you do, please tell us at comeau@comeaucomputing.com
|
||||
//
|
||||
// Changes made here, AND THROUGH ALL FILES, based upon the __COMO__ macro
|
||||
// (and SIMILAR NAMES INVOLVING COMO).... no doubt some of this will
|
||||
// change as SGI integrates the changes into their code base since
|
||||
// some changes are not really Comeau C++ specific, but required to
|
||||
// make the SGI code compliant with Standard C++).
|
||||
//
|
||||
// Testing was done with Comeau C++ 4.2.44 and 4.2.45.2. Changes were made for
|
||||
// both Comeau relaxed mode and Comeau strict mode, especially for end user code
|
||||
// (that is, some of the .cxx files cannot compile in strict mode, because they
|
||||
// contain extensions to Standard C++, however their object code forms can
|
||||
// be used once compiled in relaxed mode, even if the end user code uses
|
||||
// strict mode).
|
||||
//
|
||||
// These changes may also work for some earlier versions of Comeau C++,
|
||||
// though we have not tested them.
|
||||
//
|
||||
// Actual mods made under RedHat 6.1 LINUX, should be ok with SuSE too and
|
||||
// other LINUX's, and older Caldera LINUX, Solaris/SPARC, SunOS, SCO UNIX,
|
||||
// and NetBSD. Other platforms may be added. Comeau will also perform
|
||||
// custom ports for you.
|
||||
//
|
||||
// Check libcomo details at http://www.comeaucomputing.com/libcomo and
|
||||
// http://www.comeaucomputing.com
|
||||
//
|
||||
// History of Comeau changes (this is rough, as work was often going on in parallel):
|
||||
// BETA1 July 14, 2000, Initial port for RedHat 6.1 INTEL/ELF
|
||||
// BETA2 Aug 4, 2000, Stronger RedHat support
|
||||
// Support for Comeau strict mode for end user code
|
||||
// BETA3 Aug 22, 2000, Support for other LINUX/INTEL/ELF's, including older ones
|
||||
// BETA4 Sept 2, 2000, Initial support for SCO UNIX + other UNIX x86 SVR3's
|
||||
// Stronger support for end user Comeau strict mode
|
||||
// BETA5 Oct 5, 2000, Initial support for Solaris/SPARC
|
||||
// More SCO support (though still incomplete)
|
||||
// BETA6 Feb 5, 2001, Minor mods to accomodate Comeau C++ 4.2.45.1
|
||||
// BETA7 Mar 13, 2001, Verified with Comeau C++ 4.2.45.2
|
||||
// Minor NetBSD support
|
||||
// BETA8 Apr 1. 2001, Initial support for SunOS/SPARC
|
||||
// BETA9 Apr 7, 2001, Stronger SCO support + other UNIX x86 SVR3's
|
||||
// Mods for an fpos_t problem for some LINUXes
|
||||
// Mods since Destroy did not work in strict mode
|
||||
// BETA10 Apr 12. 2001, Stronger NetBSD support
|
||||
//
|
||||
// PLANNED:
|
||||
// BETAx TBA TBA, 2001, NetBSD, UNIXWARE, and Windows support expected
|
||||
//
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T 1
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
# define _STLP_NO_LONG_DOUBLE 1
|
||||
|
||||
// Comeau C++ under LINUX/INTEL/ELF
|
||||
// Preprocess away "long long" routines for now, even in relaxed mode
|
||||
# define __wcstoull_internal_defined 1
|
||||
# define __wcstoll_internal_defined 1
|
||||
|
||||
#endif /* __COMO__ under __linux__ */
|
||||
|
||||
#ifdef __USING_x86SVR3x_WITH_COMO /* SCO et al */
|
||||
/* UNIX 386+ SVR3 mods made with __USING_x86SVR3x_WITH_COMO
|
||||
in other sources, not here */
|
||||
# define atan2l atan2
|
||||
# define cosl cos
|
||||
# define sinl sin
|
||||
# define sqrtl sqrt
|
||||
# include <math.h>
|
||||
inline long double expl(long double arg) { return exp(arg); }
|
||||
inline long double logl(long double arg) { return log(arg); }
|
||||
# define log10l log10
|
||||
|
||||
# define sinhl sinh
|
||||
# define coshl cosh
|
||||
# define fabsl fabs
|
||||
namespace std {
|
||||
inline int min(int a, int b) { return a>b ? b : a; }
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef sun
|
||||
// Comeau C++ under Solaris/SPARC or SunOS
|
||||
|
||||
#ifdef solarissparc
|
||||
#define __USING_SOLARIS_SPARC_WITH_COMO /* show this in the source when grep'ing for COMO */
|
||||
// Note comowchar.h for Solaris/SPARC wchar stuff
|
||||
|
||||
#include <math.h>
|
||||
# define sinf sin
|
||||
# define sinl sin
|
||||
# define sinhf sinh
|
||||
# define sinhl sinh
|
||||
# define cosf cos
|
||||
# define cosl cos
|
||||
# define coshf cosh
|
||||
# define coshl cosh
|
||||
# define atan2l atan2
|
||||
# define atan2f atan2
|
||||
inline float logf(float arg) { return log(arg); }
|
||||
inline long double logl(long double arg) { return log(arg); }
|
||||
# define log10f log10
|
||||
# define log10l log10
|
||||
# define expf exp
|
||||
inline long double expl(long double arg) { return exp(arg); }
|
||||
# define sqrtf sqrt
|
||||
# define sqrtl sqrt
|
||||
# define fabsf fabs
|
||||
# define fabsl fabs
|
||||
#else
|
||||
#define __USING_SUNOS_WITH_COMO
|
||||
|
||||
#define __unix 1
|
||||
#define __EXTENSIONS__ /* This might create undue noise somewhere */
|
||||
#endif
|
||||
#endif /* sun */
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
// From non-como #ifdef __GNUC__ above
|
||||
#undef _STLP_NO_FUNCTION_PTR_IN_CLASS_TEMPLATE
|
||||
#define __unix 1
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
// Some joker #define'd __END_DECLS as };
|
||||
#undef __END_DECLS
|
||||
#define __END_DECLS }
|
||||
|
||||
// <sys/stat.h> prob
|
||||
#include <sys/cdefs.h>
|
||||
#undef __RENAME
|
||||
#define __RENAME(x)
|
||||
|
||||
#define wchar_t __COMO_WCHAR_T
|
||||
#include <stddef.h>
|
||||
#undef wchar_t
|
||||
|
||||
#include <math.h>
|
||||
# ifdef BORIS_DISABLED
|
||||
# define atan2l atan2
|
||||
# define cosl cos
|
||||
# define sinl sin
|
||||
# define sqrtl sqrt
|
||||
inline long double expl(long double arg) { return exp(arg); }
|
||||
inline long double logl(long double arg) { return log(arg); }
|
||||
# define log10l log10
|
||||
# define sinhl sinh
|
||||
# define coshl cosh
|
||||
# define fabsl fabs
|
||||
# endif
|
||||
#endif /* __NetBSD__ under __COMO__ */
|
||||
|
||||
// Shouldn't need to change anything below here for Comeau C++
|
||||
// If so, tell us at comeau@comeaucomputing.com
|
||||
|
||||
#define _STLP_NO_DRAND48
|
||||
|
||||
#define _STLP_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
#define _STLP_NO_USING_CLAUSE_IN_CLASS
|
||||
|
||||
|
||||
#if __COMO_VERSION__ >= 4245
|
||||
#define _STLP_NO_EXCEPTION_HEADER /**/
|
||||
#endif
|
||||
#define _STLP_NO_BAD_ALLOC /**/
|
||||
#define _STLP_USE_AUTO_PTR_CONVERSIONS /**/
|
||||
|
||||
#if __COMO_VERSION__ >= 4245
|
||||
// Is this needed?
|
||||
#include <stdexcept.stdh>
|
||||
//
|
||||
// ALSO: SEE THE END OF THIS FILE FOR #INCLUDE <IOSTREAM>
|
||||
//
|
||||
#endif
|
||||
|
||||
// this one is true only with MS
|
||||
# if defined (_MSC_VER)
|
||||
# define _STLP_WCHAR_T_IS_USHORT 1
|
||||
# if _MSC_VER <= 1200
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD
|
||||
# endif
|
||||
# if _MSC_VER < 1100
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# define _STLP_NO_NEW_IOSTREAMS 1
|
||||
# endif
|
||||
# endif
|
||||
|
||||
// # define __EDG_SWITCHES
|
||||
|
||||
|
||||
78
STLPORT/stlport/config/stl_confix.h
Normal file
78
STLPORT/stlport/config/stl_confix.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* STLport configuration file
|
||||
* It is internal STLport header - DO NOT include it directly
|
||||
* Purpose of this file : to define STLport settings that depend on
|
||||
* compiler flags or can be otherwise missed
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _STLP_CONFIX_H
|
||||
# define _STLP_CONFIX_H
|
||||
|
||||
/* If, by any chance, C compiler gets there, try to help it to pass smoothly */
|
||||
# if ! defined (__cplusplus) && ! defined (_STLP_HAS_NO_NAMESPACES)
|
||||
# define _STLP_HAS_NO_NAMESPACES
|
||||
# endif
|
||||
|
||||
# if defined(__MINGW32__)
|
||||
# define _STLP_NO_DRAND48
|
||||
# endif
|
||||
|
||||
/* Modena C++ library */
|
||||
#if defined (__MWERKS__) && __MWERKS__ <= 0x2303 || (defined (__KCC) && __KCC_VERSION < 3400)
|
||||
# include <mcompile.h>
|
||||
# define _STLP_USE_MSIPL 1
|
||||
# if defined (__KCC) || (defined(__MSL_CPP__) && \
|
||||
( (__MSL_CPP__ >= 0x5000 && defined( _MSL_NO_MESSAGE_FACET )) || \
|
||||
(__MSL_CPP__ < 0x5000 && defined( MSIPL_NL_TYPES ))) \
|
||||
)
|
||||
# define _STLP_NO_NATIVE_MESSAGE_FACET 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* common switches for EDG front-end */
|
||||
# if defined (__EDG_SWITCHES)
|
||||
# if !(defined(_TYPENAME) || defined (_TYPENAME_IS_KEYWORD))
|
||||
# undef _STLP_NEED_TYPENAME
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# endif
|
||||
# if !defined(_WCHAR_T_IS_KEYWORD)
|
||||
# undef _STLP_NO_WCHAR_T
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# endif
|
||||
# ifndef _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES
|
||||
# undef _STLP_NO_CLASS_PARTIAL_SPECIALIZATION
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# endif
|
||||
# ifndef _MEMBER_TEMPLATES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATES
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# endif
|
||||
# if !defined(_MEMBER_TEMPLATE_KEYWORD)
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# endif
|
||||
# if !defined (__EXCEPTIONS) && ! defined (_EXCEPTIONS)
|
||||
# undef _STLP_HAS_NO_EXCEPTIONS
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
# endif
|
||||
# undef __EDG_SWITCHES
|
||||
# endif /* EDG */
|
||||
#endif
|
||||
68
STLPORT/stlport/config/stl_cray.h
Normal file
68
STLPORT/stlport/config/stl_cray.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
// Mostly correct guess, change it for Alpha (and other environments
|
||||
// that has 64-bit "long")
|
||||
# define _STLP_UINT32_T unsigned long
|
||||
|
||||
// Uncomment if long long is available
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
// Uncomment this if your compiler can't inline while(), for()
|
||||
# define _STLP_LOOP_INLINE_PROBLEMS 1
|
||||
|
||||
// Uncomment if native new-style iostreams are not available
|
||||
#define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
|
||||
// Uncomment this if your compiler does not support exceptions
|
||||
// Cray C++ supports exceptions when '-h exceptions' option is user;
|
||||
// therefore '-D_STLP_HAS_NO_EXCEPTIONS' must be used when '-h exceptions'
|
||||
// is NOT used.
|
||||
//# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
|
||||
// Delete?
|
||||
// Define this if compiler lacks <exception> header
|
||||
//# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
|
||||
// Uncomment this if your C library has lrand48() function
|
||||
# define _STLP_RAND48 1
|
||||
|
||||
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
// uncomment if new-style headers <new> is available
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
|
||||
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
|
||||
// not std::
|
||||
# define _STLP_VENDOR_GLOBAL_STD
|
||||
|
||||
// uncomment this if <cstdio> and the like put stuff in ::namespace,
|
||||
// not std::
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD
|
||||
|
||||
# define _STLP_NATIVE_C_HEADER(__x) </usr/include/##__x>
|
||||
// WARNING: Following is hardcoded to the system default C++ include files
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(__x) </opt/ctl/CC/CC/include/##__x>
|
||||
|
||||
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T
|
||||
# define _STLP_NO_CSTD_FUNCTION_IMPORTS
|
||||
//# define _STLP_VENDOR_GLOBAL_EXCEPT_STD
|
||||
|
||||
|
||||
110
STLPORT/stlport/config/stl_dec.h
Normal file
110
STLPORT/stlport/config/stl_dec.h
Normal file
@@ -0,0 +1,110 @@
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
|
||||
# define _STLP_NATIVE_HEADER(header) <../cxx/##header>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <../include/##x>
|
||||
|
||||
#if (__DECCXX_VER < 60300000)
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../cxx/##header>
|
||||
#else
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) </usr/include/cxx_cname/##header>
|
||||
#endif
|
||||
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../cxx/##header>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../cxx/##header>
|
||||
|
||||
// Alpha is little-endian
|
||||
# define _STLP_LITTLE_ENDIAN
|
||||
|
||||
// collisions
|
||||
# define _STLP_DONT_PUT_STLPORT_IN_STD
|
||||
|
||||
#if (__DECCXX_VER < 60000000)
|
||||
|
||||
// automatic template instantiation does not
|
||||
// work with namespaces ;(
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __NO_USE_STD_IOSTREAM
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# else
|
||||
// default is to use new iostreams, anyway
|
||||
# ifndef __USE_STD_IOSTREAM
|
||||
# define __USE_STD_IOSTREAM
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// # if !defined (_STLP_NEW_IOSTREAMS) && ! defined (_STLP_DONT_REDEFINE_STD) \
|
||||
// && ! defined (_STLP_REDEFINE_STD)
|
||||
// # undef __PRAGMA_ENVIRONMENT
|
||||
// # define _STLP_DONT_REDEFINE_STD
|
||||
// # endif
|
||||
|
||||
//# ifndef __STD_STRICT_ANSI_ERRORS
|
||||
//# endif
|
||||
|
||||
#ifndef __EXCEPTIONS
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
#endif
|
||||
|
||||
# ifdef __IMPLICIT_INCLUDE_ENABLED
|
||||
|
||||
// but, works with ours ;).
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
# else
|
||||
# undef _STLP_LINK_TIME_INSTANTIATION
|
||||
# endif
|
||||
|
||||
# if defined (__IMPLICIT_USING_STD) && !defined (__NO_USE_STD_IOSTREAM)
|
||||
// we should ban that !
|
||||
// # error "STLport won't work with new iostreams and std:: being implicitly included. Please use -std strict_ansi[_errors] or specify __NO_USE_STD_IOSTREAM"
|
||||
# endif
|
||||
|
||||
# if (defined (__STD_STRICT_ANSI) || defined (__STD_STRICT_ANSI_ERRORS))
|
||||
# define _STLP_STRICT_ANSI 1
|
||||
# else
|
||||
// we want to enforce it
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
|
||||
// unsigned 32-bit integer type
|
||||
# define _STLP_UINT32_T unsigned int
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
// # define _STLP_RAND48 1
|
||||
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
|
||||
# if (__DECCXX_VER <= 60400000)
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# endif
|
||||
|
||||
96
STLPORT/stlport/config/stl_dec_vms.h
Normal file
96
STLPORT/stlport/config/stl_dec_vms.h
Normal file
@@ -0,0 +1,96 @@
|
||||
// OpenVMS version
|
||||
|
||||
# define _STLP_NATIVE_HEADER(header) <sys$library:##header>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <sys$library:##x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <sys$library:##header>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <sys$library:##header>
|
||||
|
||||
#if (__DECCXX_VER < 60000000)
|
||||
|
||||
// automatic template instantiation does not
|
||||
// work with namespaces ;(
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __NO_USE_STD_IOSTREAM
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# else
|
||||
// default is to use new iostreams, anyway
|
||||
# ifndef __USE_STD_IOSTREAM
|
||||
# define __USE_STD_IOSTREAM
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// # if !defined (_STLP_NEW_IOSTREAMS) && ! defined (_STLP_DONT_REDEFINE_STD) \
|
||||
// && ! defined (_STLP_REDEFINE_STD)
|
||||
// # undef __PRAGMA_ENVIRONMENT
|
||||
// # define _STLP_DONT_REDEFINE_STD
|
||||
// # endif
|
||||
|
||||
//# ifndef __STD_STRICT_ANSI_ERRORS
|
||||
//# endif
|
||||
|
||||
#ifndef __EXCEPTIONS
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
#endif
|
||||
|
||||
# ifdef __IMPLICIT_INCLUDE_ENABLED
|
||||
|
||||
#ifndef _STLP_IOSTREAMS
|
||||
// implicit include introduces conflicts
|
||||
// between stlport and native lib.
|
||||
# undef __IMPLICIT_INCLUDE_ENABLED
|
||||
#endif
|
||||
|
||||
// but, works with ours ;).
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
|
||||
# endif
|
||||
|
||||
# if defined (__IMPLICIT_USING_STD) && !defined (__NO_USE_STD_IOSTREAM)
|
||||
// we should ban that !
|
||||
# error "STLport won't work with new iostreams and std:: being implicitly included. Please use -std strict_ansi[_errors] or specify __NO_USE_STD_IOSTREAM"
|
||||
# endif
|
||||
|
||||
# if !(defined (__STD_STRICT_ANSI) || defined (__STD_STRICT_ANSI_ERRORS))
|
||||
// we want to enforce it
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
|
||||
// unsigned 32-bit integer type
|
||||
# define _STLP_UINT32_T unsigned int
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
// # define _STLP_RAND48 1
|
||||
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
|
||||
#define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
225
STLPORT/stlport/config/stl_dm.h
Normal file
225
STLPORT/stlport/config/stl_dm.h
Normal file
@@ -0,0 +1,225 @@
|
||||
// STLport configuration file for Digital Mars C++
|
||||
|
||||
#ifndef _STLP_DMC_H
|
||||
# define _STLP_DMC_H
|
||||
|
||||
#if __DMC__ < 0x832
|
||||
#error "Digital Mars C++ versions prior to 8.32 are not supported!"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _CPPUNWIND
|
||||
# define _STLP_NO_EXCEPTIONS
|
||||
#endif
|
||||
# undef _STLP_NO_NAMESPACES
|
||||
# define _STLP_NO_RELOPS_NAMESPACE
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD
|
||||
# define _STLP_VENDOR_GLOBAL_STD
|
||||
# define _STLP_VENDOR_EXCEPT_STD std
|
||||
|
||||
# if !defined(_WIN32)
|
||||
// it's not fully supported on non-Win32 platforms
|
||||
# define _STLP_NO_NEW_IOSTREAMS
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS
|
||||
# endif
|
||||
|
||||
# if defined(_STLP_NO_NEW_IOSTREAMS) || defined(_STLP_NO_OWN_IOSTREAMS)
|
||||
# define _STLP_OWN_NAMESPACE
|
||||
# else
|
||||
# define _STLP_NO_OWN_NAMESPACE
|
||||
# endif
|
||||
|
||||
|
||||
// select threads strategy
|
||||
# if defined (_MT) && !defined (_NOTHREADS)
|
||||
# define _REENTRANT
|
||||
# else
|
||||
# define _NOTHREADS
|
||||
# endif
|
||||
|
||||
// select SGI-style alloc instead of allocator<T>
|
||||
# define _STLP_USE_SGI_ALLOCATORS
|
||||
|
||||
// select allocation method you like
|
||||
# undef _STLP_USE_MALLOC
|
||||
# define _STLP_USE_NEWALLOC
|
||||
|
||||
// this one is not mandatory, just enabled
|
||||
# undef _STLP_USE_DEFALLOC
|
||||
|
||||
// define _STLP_USE_ABBREVS if your linker has trouble with long
|
||||
// external symbols
|
||||
# undef _STLP_USE_ABBREVS
|
||||
|
||||
|
||||
// unsigned 32-bit integer type
|
||||
# define _STLP_UINT32_T unsigned
|
||||
|
||||
# ifndef _BOOL_DEFINED
|
||||
# define _STLP_NO_BOOL
|
||||
# else
|
||||
# define _STLP_DONT_USE_BOOL_TYPEDEF
|
||||
# endif
|
||||
|
||||
# undef _STLP_YVALS_H
|
||||
# undef _STLP_LIMITED_DEFAULT_TEMPLATES
|
||||
# define _STLP_DEFAULT_TYPE_PARAM
|
||||
# undef _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# undef _STLP_RAND48
|
||||
# undef _STLP_LOOP_INLINE_PROBLEMS
|
||||
|
||||
# undef _STLP_HAS_NO_NAMESPACES
|
||||
|
||||
# undef _STLP_NEED_TYPENAME
|
||||
# undef _STLP_NEED_EXPLICIT
|
||||
# undef _STLP_HAS_NO_EXCEPTIONS
|
||||
# undef _STLP_NO_EXCEPTION_SPEC
|
||||
# undef _STLP_WEAK_ATTRIBUTE
|
||||
# undef _STLP_BASE_MATCH_BUG
|
||||
# undef _STLP_NONTEMPL_BASE_MATCH_BUG
|
||||
# undef _STLP_NESTED_TYPE_PARAM_BUG
|
||||
# undef _STLP_NO_ARROW_OPERATOR
|
||||
# undef _STLP_UNINITIALIZABLE_PRIVATE
|
||||
# undef _STLP_BASE_TYPEDEF_BUG
|
||||
# undef _STLP_BASE_TYPEDEF_OUTSIDE_BUG
|
||||
# undef _STLP_CONST_CONSTRUCTOR_BUG
|
||||
|
||||
# undef _STLP_NO_NEW_STYLE_CASTS
|
||||
|
||||
# ifndef _WCHAR_T_DEFINED
|
||||
# define _STLP_NO_WCHAR_T
|
||||
# endif
|
||||
# define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
|
||||
|
||||
# undef _STLP_WCHAR_T_IS_USHORT
|
||||
|
||||
# if _INTEGRAL_MAX_BITS >= 64
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
|
||||
# undef _STLP_NO_LONG_DOUBLE
|
||||
# undef _STLP_NEED_MUTABLE
|
||||
# undef _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
# undef _STLP_NO_BAD_ALLOC
|
||||
# undef _STLP_DEBUG_ALLOC
|
||||
# undef _STLP_NO_MEMBER_TEMPLATES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
# undef _STLP_NO_FRIEND_TEMPLATES
|
||||
# undef _STLP_NO_QUALIFIED_FRIENDS
|
||||
# undef _STLP_NO_CLASS_PARTIAL_SPECIALIZATION
|
||||
# undef _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
|
||||
# undef _STLP_AUTOMATIC_TYPE_TRAITS
|
||||
# undef _STLP_MEMBER_POINTER_PARAM_BUG
|
||||
# undef _STLP_NON_TYPE_TMPL_PARAM_BUG
|
||||
# undef _STLP_NO_DEFAULT_NON_TYPE_PARAM
|
||||
# undef _STLP_NO_METHOD_SPECIALIZATION
|
||||
# undef _STLP_STATIC_ARRAY_BUG
|
||||
# undef _STLP_STATIC_CONST_INIT_BUG
|
||||
# undef _STLP_TRIVIAL_CONSTRUCTOR_BUG
|
||||
# undef _STLP_TRIVIAL_DESTRUCTOR_BUG
|
||||
# undef _STLP_BROKEN_USING_DIRECTIVE
|
||||
# undef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
# undef _STLP_NO_EXCEPTION_HEADER
|
||||
# undef _STLP_DEFAULT_CONSTRUCTOR_BUG
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS
|
||||
# define _STLP_THROW_RETURN_BUG
|
||||
# undef _STLP_LINK_TIME_INSTANTIATION
|
||||
# undef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
# undef _STLP_NO_TEMPLATE_CONVERSIONS
|
||||
# undef _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
|
||||
|
||||
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T
|
||||
|
||||
|
||||
# define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
|
||||
# define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
|
||||
# define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
|
||||
|
||||
#define _STLP_NATIVE_HEADER(header) <../include/##header>
|
||||
#define _STLP_NATIVE_C_HEADER(header) <../include/##header>
|
||||
#define _STLP_NATIVE_CPP_C_HEADER(header) <../include/##header>
|
||||
#define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../include/##header>
|
||||
#define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
|
||||
|
||||
|
||||
# if defined(__BUILDING_STLPORT) && defined(_WINDLL)
|
||||
# define _STLP_CALL __export
|
||||
|
||||
# undef _STLP_USE_DECLSPEC
|
||||
# define _STLP_USE_DECLSPEC 1
|
||||
# endif
|
||||
|
||||
# if !defined (__BUILDING_STLPORT) && !defined (_STLP_NO_OWN_IOSTREAMS)
|
||||
# if (defined (_DLL) && !defined (_STLP_DONT_USE_DLL)) || defined (_STLP_USE_DLL)
|
||||
# undef _STLP_USE_DECLSPEC
|
||||
# define _STLP_USE_DECLSPEC 1
|
||||
# endif
|
||||
|
||||
# if defined (_STLP_DEBUG)
|
||||
# if defined (_DLL)
|
||||
# if !defined (_STLP_DONT_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dm_stldebug.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_stldebug_staticx.lib")
|
||||
# endif
|
||||
# else
|
||||
# if defined (_STLP_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dms_stldebug.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_stldebug_static.lib")
|
||||
# endif
|
||||
# endif
|
||||
# elif defined (DEBUG)
|
||||
# if defined (_DLL)
|
||||
# if !defined (_STLP_DONT_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dm_debug.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_debug_staticx.lib")
|
||||
# endif
|
||||
# else
|
||||
# if defined (_STLP_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dms_debug.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_debug_static.lib")
|
||||
# endif
|
||||
# endif
|
||||
# else
|
||||
# if defined (_DLL)
|
||||
# if !defined (_STLP_DONT_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dm.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_staticx.lib")
|
||||
# endif
|
||||
# else
|
||||
# if defined (_STLP_USE_DLL)
|
||||
# pragma comment(lib,"stlp45dms.lib")
|
||||
# else
|
||||
# pragma comment(lib,"stlp45dm_static.lib")
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
|
||||
#ifdef __BUILDING_STLPORT
|
||||
// still needed for building STLport itself, but isn't needed for
|
||||
// compiling applications anymore
|
||||
# undef __SC__
|
||||
#endif
|
||||
|
||||
#undef __STLP_NO_KEYWORDS_WORKAROUND
|
||||
#if !defined (__STLP_NO_KEYWORDS_WORKAROUND)
|
||||
# define __in __stl_in
|
||||
# define __out __stl_out
|
||||
#endif
|
||||
|
||||
#endif
|
||||
5
STLPORT/stlport/config/stl_fujitsu.h
Normal file
5
STLPORT/stlport/config/stl_fujitsu.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/* STLport configuration for Fujitsu compiler : looks like a perfect one ! */
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../std
|
||||
# define _STLP_UINT32_T unsigned int
|
||||
# define _STLP_LONG_LONG long long
|
||||
# define _STLP_WCHAR_SUNPRO_EXCLUDE 1
|
||||
376
STLPORT/stlport/config/stl_gcc.h
Normal file
376
STLPORT/stlport/config/stl_gcc.h
Normal file
@@ -0,0 +1,376 @@
|
||||
/* STLport configuration file
|
||||
* It is internal STLport header - DO NOT include it directly
|
||||
*/
|
||||
|
||||
/* Systems having GLIBC installed have different traits */
|
||||
#if ! defined (_STLP_USE_GLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )
|
||||
# define _STLP_USE_GLIBC
|
||||
#endif
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
|
||||
# if defined(__FreeBSD__) || defined (__hpux) || defined(__amigaos__) || ( defined(__OS2__) && defined(__EMX__) )
|
||||
# define _STLP_NO_WCHAR_T
|
||||
# endif
|
||||
|
||||
#ifdef __USLC__
|
||||
# include <config/stl_sco.h>
|
||||
#endif
|
||||
|
||||
# if defined (__sun)
|
||||
|
||||
// gcc does not support ELF64 yet ; however; it supports ultrasparc + v8plus.
|
||||
// limits.h contains invalid values for this combination
|
||||
# if (defined (__sparc_v9__) || defined (__sparcv9)) && ! defined ( __WORD64 )
|
||||
# define __LONG_MAX__ 2147483647L
|
||||
# endif
|
||||
|
||||
# include <config/stl_solaris.h>
|
||||
# endif
|
||||
|
||||
// no thread support on AmigaOS
|
||||
#if defined (__amigaos__)
|
||||
# define _NOTHREADS
|
||||
# define _STLP_NO_THREADS
|
||||
#endif
|
||||
|
||||
// azov: gcc on lynx have a bug that causes internal
|
||||
// compiler errors when compiling STLport with namespaces turned on.
|
||||
// When the compiler gets better - comment out _STLP_HAS_NO_NAMESPACES
|
||||
# if defined (__Lynx__) && (__GNUC__ < 3)
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NO_STATIC_TEMPLATE_DATA 1
|
||||
// turn off useless warning about including system headers
|
||||
# define __NO_INCLUDE_WARN__ 1
|
||||
# endif
|
||||
|
||||
|
||||
/* Tru64 Unix, AIX, HP : gcc there by default uses uses native ld and hence cannot auto-instantiate
|
||||
static template data. If you are using GNU ld, please say so in stl_user_config.h header */
|
||||
# if (__GNUC__ < 3) && ! (_STLP_GCC_USES_GNU_LD) && \
|
||||
((defined (__osf__) && defined (__alpha__)) || defined (_AIX) || defined (__hpux) || defined(__amigaos__) )
|
||||
# define _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# endif
|
||||
|
||||
# if defined(__DJGPP)
|
||||
# define _STLP_RAND48 1
|
||||
# define _NOTHREADS 1
|
||||
# undef _PTHREADS
|
||||
# define _STLP_LITTLE_ENDIAN
|
||||
# endif
|
||||
|
||||
# if defined(__MINGW32__)
|
||||
/* Mingw32, egcs compiler using the Microsoft C runtime */
|
||||
# undef _STLP_NO_DRAND48
|
||||
# define _STLP_NO_DRAND48
|
||||
# ifdef _MT
|
||||
# define _REENTRANT
|
||||
# endif
|
||||
# define _STLP_IMPORT_DECLSPEC __attribute__((dllimport))
|
||||
# define _STLP_EXPORT_DECLSPEC __attribute__((dllexport))
|
||||
# define _STLP_CLASS_IMPORT_DECLSPEC __attribute__((dllimport))
|
||||
# define _STLP_CLASS_EXPORT_DECLSPEC __attribute__((dllexport))
|
||||
# define _STLP_CALL
|
||||
|
||||
# if defined (_STLP_USE_DYNAMIC_LIB)
|
||||
# define _STLP_USE_DECLSPEC 1
|
||||
// # define _STLP_USE_TEMPLATE_EXPORT 1
|
||||
/* Using dynamic library in MinGW requires _STLP_NO_CUSTOM_IO */
|
||||
# define _STLP_NO_CUSTOM_IO
|
||||
# endif
|
||||
|
||||
# endif
|
||||
|
||||
#if defined (__CYGWIN__) || defined (__MINGW32__) || !(defined (_STLP_USE_GLIBC) || defined (__sun))
|
||||
#ifndef __MINGW32__
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T 1
|
||||
#endif
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
# elif defined(__linux__)
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
# elif defined (__sun)
|
||||
# define _STLP_WCHAR_BORLAND_EXCLUDE
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
#endif
|
||||
|
||||
/* Mac OS X is a little different with namespaces and cannot instantiate
|
||||
* static data members in template classes */
|
||||
# if defined (__APPLE__)
|
||||
/* Mac OS X is missing a required typedef and standard macro */
|
||||
typedef unsigned int wint_t;
|
||||
|
||||
# define __unix
|
||||
|
||||
# if (__GNUC__ < 3)
|
||||
|
||||
/* Mac OS X needs one and only one source file to initialize all static data
|
||||
* members in template classes. Only one source file in an executable or
|
||||
* library can declare instances for such data members, otherwise duplicate
|
||||
* symbols will be generated. */
|
||||
|
||||
# define _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
# define _STLP_STATIC_TEMPLATE_DATA 0
|
||||
# define _STLP_WEAK_ATTRIBUTE 1
|
||||
/* Workaround for the broken Mac OS X C++ preprocessor which cannot handle
|
||||
* parameterized macros in #include statements */
|
||||
# define _STLP_NATIVE_HEADER(header) <../g++/##header##>
|
||||
# define _STLP_NATIVE_C_HEADER(header) <../include/##header##>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../g++/##header##>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../g++/##header##>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../g++/##header##>
|
||||
# endif /* __GNUC__ < 3 */
|
||||
|
||||
# define _STLP_NO_LONG_DOUBLE
|
||||
|
||||
/* Mac OS X needs all "::" scope references to be "std::" */
|
||||
#define _STLP_USE_NEW_C_HEADERS
|
||||
# endif
|
||||
|
||||
|
||||
# if defined(__BEOS__) && defined(__INTEL__)
|
||||
# define _STLP_NATIVE_HEADER(header) <../stlport/beos/##header##>
|
||||
# define _STLP_NATIVE_C_HEADER(header) <../stlport/beos/##header##>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../stlport/beos/##header##>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../stlport/beos/##header##>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../stlport/beos/##header##>
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
//# define _NOTHREADS 1
|
||||
# ifdef _PTHREADS
|
||||
# undef _PTHREADS
|
||||
# endif
|
||||
# ifdef _STLP_PTHREADS
|
||||
# undef _STLP_PTHREADS
|
||||
# endif
|
||||
# define _STLP_USE_STDIO_IO 1
|
||||
# define _STLP_USE_GLIBC 1
|
||||
# endif
|
||||
|
||||
|
||||
/* g++ 2.7.x and above */
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
# if (__GNUC__ >= 3)
|
||||
# ifndef _STLP_HAS_NO_NEW_C_HEADERS
|
||||
# define _STLP_HAS_NATIVE_FLOAT_ABS
|
||||
# else
|
||||
# ifdef _STLP_USE_GLIBC
|
||||
# define _STLP_VENDOR_LONG_DOUBLE_MATH 1 // - ptr: with new c headers no needs
|
||||
// # define _STLP_REAL_LOCALE_IMPLEMENTED
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if (__GNUC__ < 3)
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# ifndef __HONOR_STD
|
||||
# define _STLP_VENDOR_GLOBAL_EXCEPT_STD 1
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if (__GNUC_MINOR__ < 95) && (__GNUC__ < 3)
|
||||
/* egcs fails to initialize builtin types in expr. like this : new(p) char(); */
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_INCOMPLETE_EXCEPTION_HEADER
|
||||
# endif
|
||||
|
||||
# if (__GNUC_MINOR__ < 9) && (__GNUC__ < 3) /* gcc 2.8 */
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
|
||||
/* DJGPP doesn't seem to implement it in 2.8.x */
|
||||
# ifdef DJGPP
|
||||
# define _STLP_NO_STATIC_TEMPLATE_DATA 1
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if __GNUC__ <= 2 && __GNUC_MINOR__ <= 7 && ! defined (__CYGWIN32__)
|
||||
/* Will it work with 2.6 ? I doubt it. */
|
||||
# if ( __GNUC_MINOR__ < 6 )
|
||||
__GIVE_UP_WITH_STL(GCC_272);
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_RELOPS_NAMESPACE
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_DEFAULT_TYPE_PARAM 1
|
||||
# define _STLP_NO_BAD_ALLOC
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
# ifndef _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# define _STLP_NO_STATIC_TEMPLATE_DATA
|
||||
# endif
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
|
||||
# if !defined (__CYGWIN32__)
|
||||
# define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
# define _STLP_BASE_MATCH_BUG 1
|
||||
/* unused operators are required (forward) */
|
||||
# define _STLP_CONST_CONSTRUCTOR_BUG
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM
|
||||
# endif
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# else /* ! <= 2.7.* */
|
||||
# endif /* ! <= 2.7.* */
|
||||
|
||||
/* static template data members workaround strategy for gcc tries
|
||||
* to use weak symbols.
|
||||
* if you don't want to use that, #define _STLP_WEAK_ATTRIBUTE=0 ( you'll
|
||||
* have to put "#define __PUT_STATIC_DATA_MEMBERS_HERE" line in one of your
|
||||
* compilation unit ( or CFLAGS for it ) _before_ including any STL header ).
|
||||
*/
|
||||
# if defined (_STLP_NO_STATIC_TEMPLATE_DATA) && ! defined (_STLP_WEAK_ATTRIBUTE )
|
||||
/* systems using GNU ld or format that supports weak symbols
|
||||
may use "weak" attribute
|
||||
Linux & Solaris ( x86 & SPARC ) are being auto-recognized here */
|
||||
# if defined(_STLP_GNU_LD) || defined(__ELF__) || defined (__CYGWIN__) || \
|
||||
(( defined (__SVR4) || defined ( __svr4__ )) && \
|
||||
( defined (sun) || defined ( __sun__ )))
|
||||
# define _STLP_WEAK_ATTRIBUTE 1
|
||||
# endif
|
||||
# endif /* _STLP_WEAK_ATTRIBUTE */
|
||||
|
||||
|
||||
/* strict ANSI prohibits "long long" ( gcc) */
|
||||
# if defined ( __STRICT_ANSI__ )
|
||||
# undef _STLP_LONG_LONG
|
||||
// # define _STLP_STRICT_ANSI 1
|
||||
# endif
|
||||
|
||||
//# if !defined (__STRICT_ANSI__) || defined (__BUILDING_STLPORT)
|
||||
//# define _STLP_USE_TEMPLATE_EXPORT
|
||||
//# define _STLP_EXPORT_TEMPLATE_KEYWORD extern
|
||||
//# define _STLP_IMPORT_TEMPLATE_KEYWORD extern
|
||||
//# endif
|
||||
|
||||
# ifndef __EXCEPTIONS
|
||||
# undef _STLP_HAS_NO_EXCEPTIONS
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
# endif
|
||||
|
||||
# if (__GNUC__ >= 3)
|
||||
|
||||
# if ((__GNUC_MINOR__ == 0) || (__APPLE__))
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../g++-v3
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../g++-v3/backward
|
||||
# else
|
||||
# if defined(__GNUC_PATCHLEVEL__) && (__GNUC_PATCHLEVEL__ > 0)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/backward
|
||||
# else
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../__GNUC__.__GNUC_MINOR__
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../__GNUC__.__GNUC_MINOR__/backward
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# elif (__GNUC_MINOR__ < 8)
|
||||
|
||||
# define _STLP_NO_OWN_IOSTREAMS 1
|
||||
# undef _STLP_OWN_IOSTREAMS
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../g++-include
|
||||
|
||||
/* tuning of static template data members workaround */
|
||||
# if ( _STLP_STATIC_TEMPLATE_DATA < 1 )
|
||||
# if ( _STLP_WEAK_ATTRIBUTE > 0 )
|
||||
# define _STLP_WEAK __attribute__ (( weak ))
|
||||
# else
|
||||
# define _STLP_WEAK
|
||||
# endif /* _STLP_WEAK_ATTRIBUTE */
|
||||
|
||||
# ifdef __PUT_STATIC_DATA_MEMBERS_HERE
|
||||
# define __DECLARE_INSTANCE(type,item,init) type item _STLP_WEAK init
|
||||
# else
|
||||
# define __DECLARE_INSTANCE(type,item,init)
|
||||
# endif /* __PUT_STATIC_DATA_MEMBERS_HERE */
|
||||
# endif /* _STLP_STATIC_TEMPLATE_DATA */
|
||||
|
||||
# else
|
||||
|
||||
// gcc-2.95.0 used to use "g++-3" directory which has been changed to "g++" in
|
||||
// system-dependent "include" for 2.95.2 except for Cygwin and Mingw packages.
|
||||
// I expect "g++-3" not being used in later releases.
|
||||
// If your installation use "g++-3" include directory for any reason (pre-2.95.2 or Win binary kit),
|
||||
// please change the macro below to point to your directory.
|
||||
|
||||
# if defined(__DJGPP)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../lang/cxx
|
||||
# elif (__GNUC__ >= 3) || (__GNUC_MINOR__ >= 97)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include/g++-v3
|
||||
# elif ((__GNUC_MINOR__ >= 95 && __GNUC_MINOR__ < 97) && !( defined (__FreeBSD__) || defined (__NetBSD__) || defined(__sgi) || defined (__OS2__) ) )
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../g++-3
|
||||
# elif (__GNUC_MINOR__ > 8) && (__GNUC_MINOR__ < 95) && (__GNUC__ < 3) && !defined( __Lynx__ )
|
||||
// this really sucks, as GNUpro does not really identifies itself, so we have to guess
|
||||
// depending on a platform
|
||||
# ifdef __hpux
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../g++-3
|
||||
# else
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../g++-2
|
||||
# endif
|
||||
# else
|
||||
# define _STLP_NATIVE_INCLUDE_PATH g++
|
||||
# endif
|
||||
|
||||
// <exception> et al
|
||||
# ifdef __FreeBSD__
|
||||
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ > 95)
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../include
|
||||
# endif
|
||||
# else
|
||||
// azov
|
||||
# ifdef __Lynx__
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
|
||||
# else
|
||||
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)
|
||||
// # define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../g++-v3
|
||||
# else
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../include
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#endif /* GNUC_MINOR < 8 */
|
||||
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
|
||||
|
||||
#ifdef _SCO_ELF
|
||||
# define _STLP_SCO_OPENSERVER
|
||||
# if defined(_REENTRANT)
|
||||
# define _UITHREADS /* if UnixWare < 7.0.1 */
|
||||
# define _STLP_UITHREADS
|
||||
# endif /* _REENTRANT */
|
||||
#endif
|
||||
|
||||
// Tune settings for the case where static template data members are not
|
||||
// instaniated by default
|
||||
# if defined ( _STLP_NO_STATIC_TEMPLATE_DATA )
|
||||
# define _STLP_STATIC_TEMPLATE_DATA 0
|
||||
# if !defined ( _STLP_WEAK_ATTRIBUTE )
|
||||
# define _STLP_WEAK_ATTRIBUTE 0
|
||||
# endif
|
||||
# ifdef __PUT_STATIC_DATA_MEMBERS_HERE
|
||||
# define __DECLARE_INSTANCE(type,item,init) type item init
|
||||
# else
|
||||
# define __DECLARE_INSTANCE(type,item,init)
|
||||
# endif
|
||||
# else
|
||||
# define _STLP_STATIC_TEMPLATE_DATA 1
|
||||
# endif
|
||||
|
||||
|
||||
|
||||
|
||||
218
STLPORT/stlport/config/stl_hpacc.h
Normal file
218
STLPORT/stlport/config/stl_hpacc.h
Normal file
@@ -0,0 +1,218 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
// system C-library dependent
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
// # define _STLP_RAND48 1
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T 1
|
||||
# define _STLP_HPACC_BROKEN_BUFEND 1
|
||||
# define _STLP_WCHAR_HPACC_EXCLUDE 1
|
||||
|
||||
// this was reported to help, just as with SUN CC 4.2
|
||||
# define _STLP_INLINE_STRING_LITERAL_BUG
|
||||
|
||||
|
||||
// specific prolog is needed to select correct threads impl
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
|
||||
// HP aCC with +noeh
|
||||
# ifdef __HPACC_NOEH
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
# endif
|
||||
|
||||
// HP compilers
|
||||
// At that point, we only know we are on HP (and _not_ using gcc,
|
||||
// according to "stlcomp.h"
|
||||
|
||||
// __HP_aCC indicate HP ANSI C++, but not always (03.xx does not
|
||||
// define it before 3.13, for example).
|
||||
//
|
||||
# if defined(__HP_aCC)
|
||||
|
||||
# if __HP_aCC < 33100
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../iostream
|
||||
# else
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../include/iostream
|
||||
# endif
|
||||
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
#if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
|
||||
|
||||
//Special kludge to workaround bug in aCC A.01.23, CR JAGac40634
|
||||
#ifdef _STLP_DEBUG
|
||||
static void _STLP_dummy_literal() { const char *p = "x";}
|
||||
static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
|
||||
static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
|
||||
#endif
|
||||
|
||||
# define _STLP_HP_ACC 0123
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
||||
# define _STLP_VENDOR_GLOBAL_STD 1
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
#if (__HP_aCC < 12700)
|
||||
//new flag: on most HP compilers cwchar is missing
|
||||
# define _STLP_NO_CWCHAR
|
||||
#endif
|
||||
|
||||
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
||||
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
||||
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
||||
|
||||
# endif /* 123 */
|
||||
|
||||
// latest version and up
|
||||
# if (__HP_aCC >= 32500 )
|
||||
# define _STLP_HP_ACC 0325
|
||||
|
||||
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
||||
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
||||
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
||||
|
||||
# if !defined( _INCLUDE__STDC_A1_SOURCE ) // HP-UX 11i only
|
||||
# define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
|
||||
# endif
|
||||
|
||||
# if defined(_HP_NAMESPACE_STD) // option -AA
|
||||
// from now, we have a full standard lib in namespace std
|
||||
//
|
||||
// -AA indicates that we are compiling against Rogue Wave 2.2.1
|
||||
// STL shipped with the HP aCC compiler. -AA tells the compiler
|
||||
// to use the STL defined in the include_std directory.
|
||||
//
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include_std
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include_std
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include_std
|
||||
|
||||
// # define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
|
||||
# define _STLP_HP_ACC_COMPAT -1
|
||||
# else // option -Aa
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
||||
# define _STLP_VENDOR_GLOBAL_STD 1
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
// Add the following in _site_config.h if "-Wc,-koenig_lookup,on" not used
|
||||
//# define _STLP_NO_KOENIG_LOOKUP 1
|
||||
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
||||
# endif /* _NAMESPACE_STD */
|
||||
# endif
|
||||
|
||||
# if (__HP_aCC >= 31400 && __HP_aCC < 32500)
|
||||
# define _STLP_HP_ACC 0314
|
||||
|
||||
# define _STLP_FORCE_ALLOCATORS(t,a) \
|
||||
typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
|
||||
typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
|
||||
# define _STLP_NO_CWCHAR
|
||||
# if defined(_NAMESPACE_STD) // option -AA
|
||||
// from now, we have a full standard lib in namespace std
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include_std
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include_std
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include_std
|
||||
// # define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
|
||||
# define _STLP_HP_ACC_COMPAT -1
|
||||
# else // kind of compatibility mode
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
||||
# define _STLP_VENDOR_GLOBAL_STD 1
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
// comment if "-Wc,-koenig_lookup,on" id used
|
||||
# define _STLP_NO_KOENIG_LOOKUP 1
|
||||
# define _STLP_DONT_THROW_RANGE_ERRORS 1
|
||||
# define _STLP_NO_ROPE 1
|
||||
# endif /* _NAMESPACE_STD */
|
||||
# endif /* 314 */
|
||||
|
||||
# if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
|
||||
|
||||
#if (__HP_aCC != 1)
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
#endif
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
// aCC bug ? need explicit args on constructors of partial specialized
|
||||
// classes
|
||||
# define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
|
||||
// ?? fbp: really needed ?
|
||||
# define _STLP_STATIC_ARRAY_BUG 1
|
||||
// ?? fbp : maybe present in some versions ?
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
// <exception> and stuff is in global namespace
|
||||
# define _STLP_VENDOR_GLOBAL_EXCEPT_STD
|
||||
// fbp : moved here
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
// # define _INCLUDE_HPUX_SOURCE
|
||||
# define _XPG4
|
||||
# define _INCLUDE_XOPEN_SOURCE
|
||||
# define _INCLUDE_AES_SOURCE
|
||||
# endif /* < 314 */
|
||||
# if __HP_aCC == 1
|
||||
# define _STLP_BROKEN_USING_IN_CLASS
|
||||
# define _STLP_USING_BASE_MEMBER
|
||||
# define _STLP_NO_CWCHAR
|
||||
// # define _STLP_NO_WCHAR_T 1
|
||||
# endif
|
||||
# endif /* HP_ACC */
|
||||
|
||||
//
|
||||
# ifndef __HP_aCC
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CC
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
// it is HP's old cfront-based compiler.
|
||||
# define _STLP_NO_BOOL 1
|
||||
// # define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_NO_SIGNED_BUILTINS
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NO_EXCEPTION_SPEC 1
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
# define _STLP_BASE_MATCH_BUG
|
||||
# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
// # define _STLP_NO_WCHAR_T 1
|
||||
// # define _STLP_LONG_LONG long long
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_MEMBER_POINTER_PARAM_BUG 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
// # define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
// # define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
// # define _STLP_THROW_RETURN_BUG 1
|
||||
// # define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
// # define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
# define _STLP_NO_TYPEINFO 1
|
||||
# define _STLP_WCHAR_T_IS_USHORT 1
|
||||
|
||||
# endif /* cfront */
|
||||
|
||||
139
STLPORT/stlport/config/stl_ibm.h
Normal file
139
STLPORT/stlport/config/stl_ibm.h
Normal file
@@ -0,0 +1,139 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
#if !defined(__IBMCPP__) || (__IBMCPP__ < 500)
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
#endif
|
||||
|
||||
// string literal problem, same as with SUN and aCC
|
||||
# define _STLP_INLINE_STRING_LITERAL_BUG 1
|
||||
# define _STLP_HAS_NATIVE_FLOAT_ABS
|
||||
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
|
||||
|
||||
# ifdef __IBMCPP__
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
# endif
|
||||
|
||||
// # if ( defined (__MULTI__) && defined (__WINDOWS__))
|
||||
// # define _STLP_WIN32THREADS 1 // Only Visual Age 3.5 for Windows
|
||||
// # endif
|
||||
|
||||
# if ( defined (__MULTI__) && defined (__OS2__))
|
||||
# define _STLP_OS2THREADS 1
|
||||
# endif
|
||||
|
||||
// __TEMPINC__ is set when /Ft+ option is used
|
||||
# ifdef __TEMPINC__
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
# endif
|
||||
|
||||
# if defined (__MVS__)
|
||||
// long long support is buggy - reported by Tinny Ng
|
||||
// # if __EXTENDED__ && __COMPILER_VER__ >= 0x22060000
|
||||
// # define _STLP_LONG_LONG long long
|
||||
// # endif
|
||||
// boris : hstash reported it can be treated like UNIX
|
||||
# define _STLP_UNIX 1
|
||||
# define _STLP_NO_TYPEINFO 1
|
||||
# undef _STLP_NATIVE_INCLUDE_PATH
|
||||
# define _STLP_NATIVE_INCLUDE_PATH /usr/lpp/ioclib/include
|
||||
// same for C headers like <string.h>
|
||||
# undef _STLP_NATIVE_C_INCLUDE_PATH
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH /usr/include
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH /usr/include
|
||||
|
||||
# elif (defined (__WINDOWS__) || defined (_AIX) || defined (__OS2__) ) && (__IBMCPP__ >= 350)
|
||||
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
#endif
|
||||
|
||||
#if !( defined( __xlC__ ) && __xlC__ >= 0x500 )
|
||||
|
||||
// AIX xlC 3.1 , 3.0.1 ==0x301
|
||||
// Visual Age C++ 3.x
|
||||
// OS-390 C++
|
||||
// fbp : should be more version-specific!
|
||||
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
|
||||
# if defined (__OS2__) && (__IBMCPP__ <= 350)
|
||||
# define _STLP_NO_TYPEINFO 1
|
||||
# endif
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
// # define _STLP_THROW_RETURN_BUG 1
|
||||
|
||||
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
# define _STLP_UNINITIALIZABLE_PRIVATE 1
|
||||
# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
||||
# define _STLP_STATIC_ARRAY_BUG 1
|
||||
|
||||
// AIX xlC, Visual Age 3.0 for OS/2 and MS
|
||||
# define _STLP_TRIVIAL_DESTRUCTOR_BUG
|
||||
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
|
||||
#if __IBMCPP__ <= 350
|
||||
# define _STLP_NEED_UNREACHABLE_RETURN 1
|
||||
#endif
|
||||
|
||||
#if __IBMCPP__ < 350
|
||||
# define _STLP_NO_LONG_DOUBLE 1
|
||||
#endif
|
||||
|
||||
#if __IBMCPP__ >= 365
|
||||
// does not have new C headers, but has div()
|
||||
# define _STLP_LDIV
|
||||
#endif
|
||||
|
||||
#endif /* xlC 5 */
|
||||
|
||||
/* detect xlC5 by: */
|
||||
#if defined(__IBMCPP__) && (500 <= __IBMCPP__) && (__IBMCPP__ < 700)
|
||||
// #define _STLP_USE_EXCEPTIONS 1
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
//#pragma report(disable,CPPC1500029)
|
||||
// unsigned 32-bit integer type
|
||||
# define _STLP_UINT32_T unsigned int
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
// # define _STLP_RAND48 1
|
||||
# endif /* __IBMCPP__ == 500 */
|
||||
|
||||
|
||||
|
||||
|
||||
49
STLPORT/stlport/config/stl_icc.h
Normal file
49
STLPORT/stlport/config/stl_icc.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* stl_icc.h
|
||||
* *
|
||||
* * A list of Intel compiler for Linux portion of STLport settings.
|
||||
* * This file is being included by stlcomp.h
|
||||
* */
|
||||
# ifndef _STLP_ICC_H
|
||||
# define _STLP_ICC_H
|
||||
|
||||
# define _STLP_UINT32_T unsigned long
|
||||
# define _STLP_LONG_LONG long long
|
||||
# define _STLP_TYPENAME_ON_RETURN_TYPE typename
|
||||
|
||||
// Edit relative path below (or put full path) to get native
|
||||
// compiler headers included. Default is "../include".
|
||||
// C headers may reside in different directory, so separate macro is provided.
|
||||
# if (__INTEL_COMPILER < 800)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
# else
|
||||
// The header of files have moved to a new location on Linux Intel C++ compiler
|
||||
// starting with version 8, which has GCC 3.2 compatability.
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include/c++
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH/backward
|
||||
# ifndef __GNUC__
|
||||
// If GCC compatability is diabled (-no-gcc is specified) STD needs to be redefined.
|
||||
# define _STLP_REDEFINE_STD 1
|
||||
# endif
|
||||
# endif
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
||||
|
||||
// This macro constructs header path from directory and name.
|
||||
# define _STLP_MAKE_HEADER(path, header) <path/header>
|
||||
// This macro constructs native include header path from include path and name.
|
||||
# define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
|
||||
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
|
||||
|
||||
// Same for C headers
|
||||
# define _STLP_NATIVE_C_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_C_INCLUDE_PATH,header)
|
||||
|
||||
# undef _STLP_WINCE
|
||||
|
||||
# ifndef __GNUC__
|
||||
# define __GNUC__ 1
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# endif
|
||||
|
||||
1
STLPORT/stlport/config/stl_icc.h.orig
Normal file
1
STLPORT/stlport/config/stl_icc.h.orig
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
14
STLPORT/stlport/config/stl_intel.h
Normal file
14
STLPORT/stlport/config/stl_intel.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
# if (__ICL >= 450)
|
||||
# define _STLP_DLLEXPORT_NEEDS_PREDECLARATION 1
|
||||
# endif
|
||||
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD extern
|
||||
|
||||
# include <config/stl_msvc.h>
|
||||
|
||||
# undef _STLP_LONG_LONG
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
58
STLPORT/stlport/config/stl_kai.h
Normal file
58
STLPORT/stlport/config/stl_kai.h
Normal file
@@ -0,0 +1,58 @@
|
||||
// STLport config file for KAI C++ compiler
|
||||
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
|
||||
# ifndef __KAI_STRICT /* _NO_LONGLONG */
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
|
||||
# if !defined (__EXCEPTIONS) && ! defined (_EXCEPTIONS)
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
# endif
|
||||
|
||||
# ifndef __BUILDING_STLPORT
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
# endif
|
||||
|
||||
// two levels of macros do not work good with kcc.
|
||||
# define _STLP_NATIVE_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_C_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
|
||||
|
||||
# ifdef _WIN32
|
||||
# define _STLP_MINIMUM_IMPORT_STD
|
||||
# endif
|
||||
|
||||
// KAI C++ uses EDG front-end, but apparently different switches
|
||||
// # define __EDG_SWITCHES 1
|
||||
|
||||
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD 1
|
||||
# define _STLP_VENDOR_MB_NAMESPACE std
|
||||
|
||||
// boris : some of those may also apply to KCC 3.4
|
||||
# if __KCC_VERSION < 4000
|
||||
# define _STLP_VENDOR_GLOBAL_EXCEPT_STD 1
|
||||
|
||||
# endif
|
||||
|
||||
// this is multiplatform compiler, so here should go system-dependant section
|
||||
// This really should be in platform-specific files, like stl_solaris.h
|
||||
# ifdef __linux__
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
# elif defined (__sun) || defined (sun)
|
||||
// # define _STLP_VENDOR_MB_NAMESPACE
|
||||
# include <config/stl_solaris.h>
|
||||
# elif defined (__hpux)
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS
|
||||
# elif defined (__sgi)
|
||||
// this requires some discrimination on whether we are actually on
|
||||
// a system officially supported by KAI.
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# include <standards.h>
|
||||
# endif
|
||||
|
||||
8
STLPORT/stlport/config/stl_mlc.h
Normal file
8
STLPORT/stlport/config/stl_mlc.h
Normal file
@@ -0,0 +1,8 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
#define _STLP_NO_MEMBER_TEMPLATES // Compiler does not support member templates
|
||||
#define _STLP_NO_MEMBER_TEMPLATE_CLASSES // Compiler does not support member template classes
|
||||
|
||||
#define _STLP_HAS_NEW_NEW_HEADER
|
||||
#define _STLP_HAS_NO_NEW_IOSTREAMS // Native C++ library does not provide new-style templatized iostreams
|
||||
208
STLPORT/stlport/config/stl_msvc.h
Normal file
208
STLPORT/stlport/config/stl_msvc.h
Normal file
@@ -0,0 +1,208 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
// Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0, 6.0, 7.0, 7.1, ICL
|
||||
|
||||
|
||||
// Common features for VC++ 4.0 and higher
|
||||
# ifdef _M_IA64
|
||||
# define _STLP_NATIVE_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../crt/##header>
|
||||
# define _STLP_GLOBAL_NEW_HANDLER
|
||||
# else
|
||||
# define _STLP_NATIVE_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
|
||||
# endif
|
||||
|
||||
# define _STLP_CALL __cdecl
|
||||
|
||||
# ifndef _STLP_LONG_LONG
|
||||
# define _STLP_LONG_LONG __int64
|
||||
# endif
|
||||
|
||||
# define _STLP_PRAGMA_ONCE
|
||||
|
||||
// these switches depend on compiler flags
|
||||
# ifndef _CPPUNWIND
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
# endif
|
||||
|
||||
# define _STLP_VENDOR_UNEXPECTED_STD
|
||||
|
||||
# if defined ( _MT ) && !defined (_STLP_NO_THREADS) && !defined (_REENTRANT)
|
||||
# define _REENTRANT 1
|
||||
# endif
|
||||
|
||||
# if !defined (_NATIVE_WCHAR_T_DEFINED)
|
||||
# define _STLP_WCHAR_T_IS_USHORT 1
|
||||
# endif
|
||||
|
||||
# define _STLP_MINIMUM_IMPORT_STD
|
||||
|
||||
# ifdef _STLP_MSVC
|
||||
|
||||
# ifndef _STLP_MSVC50_COMPATIBILITY
|
||||
# define _STLP_MSVC50_COMPATIBILITY 1
|
||||
# endif
|
||||
|
||||
# define _STLP_DLLEXPORT_NEEDS_PREDECLARATION 1
|
||||
|
||||
// # ifndef __BUILDING_STLPORT
|
||||
// # define _STLP_USE_TEMPLATE_EXPORT 1
|
||||
// # endif
|
||||
|
||||
# if (_STLP_MSVC >= 1310)
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# endif // (_STLP_MSVC >= 1310)
|
||||
|
||||
# if (_STLP_MSVC > 1100)
|
||||
typedef char __stl_char;
|
||||
# define _STLP_DEFAULTCHAR __stl_char
|
||||
# endif /* (_STLP_MSVC < 1100 ) */
|
||||
|
||||
# if (_STLP_MSVC <= 1310)
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
# endif // (_STLP_MSVC <= 1310)
|
||||
|
||||
# if (_STLP_MSVC <= 1300)
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
# define _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
|
||||
// fails to properly resolve call to sin() from within sin()
|
||||
# define _STLP_SAME_FUNCTION_NAME_RESOLUTION_BUG
|
||||
# define _STLP_NO_TYPENAME_ON_RETURN_TYPE 1
|
||||
// boris : not defining this macro for SP5 causes other problems
|
||||
// # if !defined (_MSC_FULL_VER) || (_MSC_FULL_VER < 12008804 )
|
||||
# define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
|
||||
//# endif
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES
|
||||
// VC++ cannot handle default allocator argument in template constructors
|
||||
# define _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
|
||||
// there is no partial spec, and MSVC breaks on simulating it for iterator_traits queries
|
||||
# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
||||
# endif /* _STLP_MSVC <= 1300 */
|
||||
|
||||
# endif /* _STLP_MSVC */
|
||||
|
||||
# if (_MSC_VER <= 1310)
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD
|
||||
// They included the necessary coding,
|
||||
// but the beta still has an issue with template classes
|
||||
// ok: class a { static const int v = 2; };
|
||||
// error: template <class _Tp> class a { static const int v = 2; };
|
||||
# if !defined (_STLP_WHOLE_NATIVE_STD) && ! defined (_STLP_REDEFINE_STD)
|
||||
# define _STLP_REDEFINE_STD
|
||||
# endif
|
||||
# endif /* (_MSC_VER <= 1310) */
|
||||
|
||||
# if (_MSC_VER <= 1200) // including MSVC 6.0
|
||||
// these work, as long they are inline
|
||||
# define _STLP_INLINE_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_GLOBAL_NEW_HANDLER
|
||||
# define _STLP_DONT_RETURN_VOID 1
|
||||
# define _STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM 1
|
||||
# endif /* (_MSC_VER <= 1200) */
|
||||
|
||||
# if ( _MSC_VER<=1010 )
|
||||
// "bool" is reserved in MSVC 4.1 while <yvals.h> absent, so :
|
||||
// # define _STLP_USE_ABBREVS 1
|
||||
# define _STLP_NO_BAD_ALLOC
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# elif (_MSC_VER < 1100)
|
||||
// VC++ 4.2 and higher
|
||||
# define _STLP_YVALS_H 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# endif /* 1010 */
|
||||
|
||||
# if defined (_STLP_MSVC) && ( _STLP_MSVC < 1200 ) /* VC++ 6.0 */
|
||||
// # define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_THROW_RETURN_BUG 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# endif
|
||||
|
||||
# if defined (_STLP_MSVC) && ( _STLP_MSVC < 1100 )
|
||||
# ifndef _STLP_NO_OWN_IOSTREAMS
|
||||
# define _STLP_NO_OWN_IOSTREAMS
|
||||
# undef _STLP_OWN_IOSTREAMS
|
||||
# endif
|
||||
// # define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
// Debug mode does not work for 4.2
|
||||
# ifdef _STLP_DEBUG
|
||||
# pragma message ("STLport debug mode does not work for VC++ 4.2, turning _STLP_DEBUG off ...")
|
||||
# undef _STLP_DEBUG
|
||||
# endif
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
|
||||
// up to 4.2, library is in global namespace
|
||||
# define _STLP_VENDOR_GLOBAL_STD
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_NO_ARROW_OPERATOR
|
||||
# define _STLP_NO_SIGNED_BUILTINS 1
|
||||
# define _STLP_NO_EXCEPTION_SPEC 1
|
||||
# undef _STLP_DEFAULT_TYPE_PARAM
|
||||
# undef _STLP_HAS_NO_NAMESPACES
|
||||
# undef _STLP_NO_AT_MEMBER_FUNCTION
|
||||
# undef _STLP_NO_MEMBER_TEMPLATES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NO_AT_MEMBER_FUNCTION 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# endif /* 1100 */
|
||||
|
||||
// If we are under Windows CE, include appropriate config
|
||||
|
||||
# ifdef UNDER_CE
|
||||
# include <config/stl_wince.h>
|
||||
# endif
|
||||
|
||||
# ifdef __ICL
|
||||
# define _STLP_LIB_BASENAME "stlport_icl"
|
||||
# else
|
||||
# if (_MSC_VER >= 1300)
|
||||
# define _STLP_LIB_BASENAME "stlport_vc7"
|
||||
# elif (_MSC_VER >= 1200)
|
||||
//# ifdef _UNICODE
|
||||
//# define _STLP_LIB_BASENAME "stlport_vc6_unicode"
|
||||
//# else
|
||||
# define _STLP_LIB_BASENAME "stlport_vc6"
|
||||
//# endif
|
||||
# elif (_MSC_VER >= 1100)
|
||||
//# ifdef _UNICODE
|
||||
//# define _STLP_LIB_BASENAME "stlport_vc5_unicode"
|
||||
//# else
|
||||
# define _STLP_LIB_BASENAME "stlport_vc5"
|
||||
//# endif
|
||||
# endif /* (_MSC_VER >= 1200) */
|
||||
# endif /* __ICL */
|
||||
|
||||
|
||||
# if (defined (__ICL) && (__ICL < 450)) || (_MSC_VER < 1200)
|
||||
// only static STLport lib now works for ICL and VC 5.0
|
||||
# undef _STLP_USE_STATIC_LIB
|
||||
# define _STLP_USE_STATIC_LIB
|
||||
// disable hook which makes template symbols to be searched for in the library
|
||||
# undef _STLP_NO_CUSTOM_IO
|
||||
# endif
|
||||
|
||||
# include <config/vc_select_lib.h>
|
||||
208
STLPORT/stlport/config/stl_msvc.h.bak
Normal file
208
STLPORT/stlport/config/stl_msvc.h.bak
Normal file
@@ -0,0 +1,208 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
// Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0, 6.0, 7.0, 7.1, ICL
|
||||
|
||||
|
||||
// Common features for VC++ 4.0 and higher
|
||||
# ifdef _M_IA64
|
||||
# define _STLP_NATIVE_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../crt/##x>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../crt/##header>
|
||||
# define _STLP_GLOBAL_NEW_HANDLER
|
||||
# else
|
||||
# define _STLP_NATIVE_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_C_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../include/##x>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
|
||||
# endif
|
||||
|
||||
# define _STLP_CALL __cdecl
|
||||
|
||||
# ifndef _STLP_LONG_LONG
|
||||
# define _STLP_LONG_LONG __int64
|
||||
# endif
|
||||
|
||||
# define _STLP_PRAGMA_ONCE
|
||||
|
||||
// these switches depend on compiler flags
|
||||
# ifndef _CPPUNWIND
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
# endif
|
||||
|
||||
# define _STLP_VENDOR_UNEXPECTED_STD
|
||||
|
||||
# if defined ( _MT ) && !defined (_STLP_NO_THREADS) && !defined (_REENTRANT)
|
||||
# define _REENTRANT 1
|
||||
# endif
|
||||
|
||||
# if !defined (_NATIVE_WCHAR_T_DEFINED)
|
||||
# define _STLP_WCHAR_T_IS_USHORT 1
|
||||
# endif
|
||||
|
||||
# define _STLP_MINIMUM_IMPORT_STD
|
||||
|
||||
# ifdef _STLP_MSVC
|
||||
|
||||
# ifndef _STLP_MSVC50_COMPATIBILITY
|
||||
# define _STLP_MSVC50_COMPATIBILITY 1
|
||||
# endif
|
||||
|
||||
# define _STLP_DLLEXPORT_NEEDS_PREDECLARATION 1
|
||||
|
||||
// # ifndef __BUILDING_STLPORT
|
||||
// # define _STLP_USE_TEMPLATE_EXPORT 1
|
||||
// # endif
|
||||
|
||||
# if (_STLP_MSVC >= 1310)
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# endif // (_STLP_MSVC >= 1310)
|
||||
|
||||
# if (_STLP_MSVC > 1100)
|
||||
typedef char __stl_char;
|
||||
# define _STLP_DEFAULTCHAR __stl_char
|
||||
# endif /* (_STLP_MSVC < 1100 ) */
|
||||
|
||||
# if (_STLP_MSVC <= 1310)
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
# endif // (_STLP_MSVC <= 1310)
|
||||
|
||||
# if (_STLP_MSVC <= 1300)
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
# define _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
|
||||
// fails to properly resolve call to sin() from within sin()
|
||||
# define _STLP_SAME_FUNCTION_NAME_RESOLUTION_BUG
|
||||
# define _STLP_NO_TYPENAME_ON_RETURN_TYPE 1
|
||||
// boris : not defining this macro for SP5 causes other problems
|
||||
// # if !defined (_MSC_FULL_VER) || (_MSC_FULL_VER < 12008804 )
|
||||
# define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
|
||||
//# endif
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES
|
||||
// VC++ cannot handle default allocator argument in template constructors
|
||||
# define _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
|
||||
// there is no partial spec, and MSVC breaks on simulating it for iterator_traits queries
|
||||
# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
||||
# endif /* _STLP_MSVC <= 1300 */
|
||||
|
||||
# endif /* _STLP_MSVC */
|
||||
|
||||
# if (_MSC_VER <= 1310)
|
||||
# define _STLP_VENDOR_GLOBAL_CSTD
|
||||
// They included the necessary coding,
|
||||
// but the beta still has an issue with template classes
|
||||
// ok: class a { static const int v = 2; };
|
||||
// error: template <class _Tp> class a { static const int v = 2; };
|
||||
# if !defined (_STLP_WHOLE_NATIVE_STD) && ! defined (_STLP_REDEFINE_STD)
|
||||
//# define _STLP_REDEFINE_STD
|
||||
# endif
|
||||
# endif /* (_MSC_VER <= 1310) */
|
||||
|
||||
# if (_MSC_VER <= 1200) // including MSVC 6.0
|
||||
// these work, as long they are inline
|
||||
# define _STLP_INLINE_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_GLOBAL_NEW_HANDLER
|
||||
# define _STLP_DONT_RETURN_VOID 1
|
||||
# define _STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM 1
|
||||
# endif /* (_MSC_VER <= 1200) */
|
||||
|
||||
# if ( _MSC_VER<=1010 )
|
||||
// "bool" is reserved in MSVC 4.1 while <yvals.h> absent, so :
|
||||
// # define _STLP_USE_ABBREVS 1
|
||||
# define _STLP_NO_BAD_ALLOC
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# elif (_MSC_VER < 1100)
|
||||
// VC++ 4.2 and higher
|
||||
# define _STLP_YVALS_H 1
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# endif /* 1010 */
|
||||
|
||||
# if defined (_STLP_MSVC) && ( _STLP_MSVC < 1200 ) /* VC++ 6.0 */
|
||||
// # define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_THROW_RETURN_BUG 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# endif
|
||||
|
||||
# if defined (_STLP_MSVC) && ( _STLP_MSVC < 1100 )
|
||||
# ifndef _STLP_NO_OWN_IOSTREAMS
|
||||
# define _STLP_NO_OWN_IOSTREAMS
|
||||
# undef _STLP_OWN_IOSTREAMS
|
||||
# endif
|
||||
// # define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
// Debug mode does not work for 4.2
|
||||
# ifdef _STLP_DEBUG
|
||||
# pragma message ("STLport debug mode does not work for VC++ 4.2, turning _STLP_DEBUG off ...")
|
||||
# undef _STLP_DEBUG
|
||||
# endif
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
|
||||
// up to 4.2, library is in global namespace
|
||||
# define _STLP_VENDOR_GLOBAL_STD
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_NO_ARROW_OPERATOR
|
||||
# define _STLP_NO_SIGNED_BUILTINS 1
|
||||
# define _STLP_NO_EXCEPTION_SPEC 1
|
||||
# undef _STLP_DEFAULT_TYPE_PARAM
|
||||
# undef _STLP_HAS_NO_NAMESPACES
|
||||
# undef _STLP_NO_AT_MEMBER_FUNCTION
|
||||
# undef _STLP_NO_MEMBER_TEMPLATES
|
||||
# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NO_AT_MEMBER_FUNCTION 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
# endif /* 1100 */
|
||||
|
||||
// If we are under Windows CE, include appropriate config
|
||||
|
||||
# ifdef UNDER_CE
|
||||
# include <config/stl_wince.h>
|
||||
# endif
|
||||
|
||||
# ifdef __ICL
|
||||
# define _STLP_LIB_BASENAME "stlport_icl"
|
||||
# else
|
||||
# if (_MSC_VER >= 1300)
|
||||
# define _STLP_LIB_BASENAME "stlport_vc7"
|
||||
# elif (_MSC_VER >= 1200)
|
||||
//# ifdef _UNICODE
|
||||
//# define _STLP_LIB_BASENAME "stlport_vc6_unicode"
|
||||
//# else
|
||||
# define _STLP_LIB_BASENAME "stlport_vc6"
|
||||
//# endif
|
||||
# elif (_MSC_VER >= 1100)
|
||||
//# ifdef _UNICODE
|
||||
//# define _STLP_LIB_BASENAME "stlport_vc5_unicode"
|
||||
//# else
|
||||
# define _STLP_LIB_BASENAME "stlport_vc5"
|
||||
//# endif
|
||||
# endif /* (_MSC_VER >= 1200) */
|
||||
# endif /* __ICL */
|
||||
|
||||
|
||||
# if (defined (__ICL) && (__ICL < 450)) || (_MSC_VER < 1200)
|
||||
// only static STLport lib now works for ICL and VC 5.0
|
||||
# undef _STLP_USE_STATIC_LIB
|
||||
# define _STLP_USE_STATIC_LIB
|
||||
// disable hook which makes template symbols to be searched for in the library
|
||||
# undef _STLP_NO_CUSTOM_IO
|
||||
# endif
|
||||
|
||||
# include <config/vc_select_lib.h>
|
||||
140
STLPORT/stlport/config/stl_mwerks.h
Normal file
140
STLPORT/stlport/config/stl_mwerks.h
Normal file
@@ -0,0 +1,140 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
// Bring in definition of __MSL__ and related items
|
||||
#include <mslGlobals.h>
|
||||
#include <ansi_parms.h>
|
||||
|
||||
//
|
||||
// Compiler features
|
||||
//
|
||||
|
||||
|
||||
// *** CodeWarrior Compiler Common Features ***
|
||||
# if __option(longlong)
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
|
||||
# define _STLP_USE_UNIX_EMULATION_IO 1
|
||||
# define _STLP_USE_AUTO_PTR_CONVERSIONS 1
|
||||
|
||||
# ifdef __INTEL__
|
||||
# define _STLP_LITTLE_ENDIAN
|
||||
# else
|
||||
# define _STLP_BIG_ENDIAN
|
||||
# endif
|
||||
|
||||
#if defined(_MSL_NO_LOCALE)
|
||||
#define _STLP_NO_IMPORT_LOCALE
|
||||
#endif
|
||||
#if !__option( wchar_type )
|
||||
# define _STLP_WCHAR_T_IS_USHORT
|
||||
#endif
|
||||
|
||||
// *** CodeWarrior Compiler Common Bugs ***
|
||||
# define __MSL_FIX_ITERATORS__(myType) // Some MSL headers rely on this
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1 // Bug mysteriously reintroduced in this version.
|
||||
# define _STLP_THROW_RETURN_BUG 1
|
||||
|
||||
// *** Version-specific settings ***
|
||||
|
||||
# if __MWERKS__ >= 0x2405
|
||||
# define _STLP_HAS_NATIVE_FLOAT_ABS
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2405
|
||||
# define _STLP_STATIC_CONST_INIT_BUG
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ <= 0x2303
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2301
|
||||
# define _STLP_MEMBER_SPECIALIZATION_BUG 1
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2300 // CW Pro5 features
|
||||
# define _STLP_INLINE_MEMBER_TEMPLATES 1
|
||||
# define _STLP_RELOPS_IN_STD_BUG 1
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_NO_TYPENAME_ON_RETURN_TYPE
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2200 // CW Pro4 features
|
||||
# define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2100 // CW Pro3 features
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
# define _STLP_TEMPLATE_PARAM_SUBTYPE_BUG 1
|
||||
# define _STLP_FORCED_INLINE_INSTANTIATION_BUG 1
|
||||
# define _STLP_MULTI_CONST_TEMPLATE_ARG_BUG 1
|
||||
# define _STLP_INLINE_NAME_RESOLUTION_BUG 1
|
||||
// *** Metrowerks Standard Library Bug ***
|
||||
# define _STLP_MSVC50_COMPATIBILITY 1
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x2000 // v. 2.0 features
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1 // dwa 8/21/97 - this bug fixed for CWPro2
|
||||
# define _STLP_UNINITIALIZABLE_PRIVATE 1 // dwa 10/23/97 - this bug fixed for CWPro2
|
||||
# endif
|
||||
|
||||
# if __MWERKS__ < 0x1900 // dwa 8/19/97 - 1.9 Compiler feature defines
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_BASE_TYPEDEF_BUG 1
|
||||
# define _STLP_BASE_MATCH_BUG 1
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# define _STLP_DEFAULT_TYPE_PARAM 1 // More limited template parameters
|
||||
|
||||
# if __MWERKS__ < 0x1800
|
||||
__GIVE_UP_WITH_STL(CW_18)
|
||||
# endif
|
||||
|
||||
# endif
|
||||
|
||||
|
||||
// fixes to native inclusion wrappers.
|
||||
# if __MWERKS__ >= 0x2300 // CWPro5 changes paths - dwa 2/28/99
|
||||
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# define _STLP_NATIVE_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_C_HEADER(header) <../include/##header>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
|
||||
|
||||
# else
|
||||
|
||||
# define _STLP_NATIVE_INCLUDE_PATH Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C++:Include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C:MSL Common:Public Includes
|
||||
# define _STLP_NATIVE_HEADER(header) <Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C++:Include:##header>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C++:Include:##header>
|
||||
# define _STLP_NATIVE_C_HEADER(header) <Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C:MSL Common:Public Includes:##header>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <Macintosh HD:Codewarrior Pro 4:Metrowerks CodeWarrior:Metrowerks Standard Library:MSL C:MSL Common:Public Includes:##header>
|
||||
|
||||
# endif
|
||||
|
||||
// fbp
|
||||
# if !defined( __MSL_CPP__ ) || __MSL_CPP__ <= 0x4105
|
||||
# define _STLP_NO_NATIVE_WIDE_STREAMS 1
|
||||
# endif
|
||||
|
||||
# define _STLP_LIB_BASENAME stlport_mwerks_x86
|
||||
# define _STLP_DLLEXPORT_NEEDS_PREDECLARATION 1
|
||||
|
||||
// # include <config/vc_select_lib.h>
|
||||
268
STLPORT/stlport/config/stl_mycomp.h
Normal file
268
STLPORT/stlport/config/stl_mycomp.h
Normal file
@@ -0,0 +1,268 @@
|
||||
/*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Purpose of this file :
|
||||
*
|
||||
* A list of COMPILER-SPECIFIC portion of STLport settings.
|
||||
* This file is provided to help in manual configuration
|
||||
* of STLport. This file is being included by stlcomp.h
|
||||
* when STLport is unable to identify your compiler.
|
||||
* Please remove the error diagnostic below before adjusting
|
||||
* macros.
|
||||
*
|
||||
*/
|
||||
# ifndef _STLP_MYCOMP_H
|
||||
# define _STLP_MYCOMP_H
|
||||
|
||||
# error "Your compiler version is not recognized by STLport. Please edit <config/stl_mycomp.h>"
|
||||
|
||||
//==========================================================
|
||||
|
||||
// the values choosen here as defaults try to give
|
||||
// maximum functionality on the most conservative settings
|
||||
|
||||
// Mostly correct guess, change it for Alpha (and other environments
|
||||
// that has 64-bit "long")
|
||||
// # define _STLP_UINT32_T unsigned long
|
||||
|
||||
// Disables wchar_t functionality
|
||||
// # define _STLP_NO_WCHAR_T 1
|
||||
|
||||
// Define if wchar_t is not a unique type, and is actually a typedef to unsigned short.
|
||||
// # define _STLP_WCHAR_T_IS_USHORT 1
|
||||
|
||||
// Uncomment if long long is available
|
||||
// # define _STLP_LONG_LONG long long
|
||||
|
||||
// Uncomment if long double is not available
|
||||
// # define _STLP_NO_LONG_DOUBLE 1
|
||||
|
||||
// Uncomment this if your compiler does not support "typename" keyword
|
||||
// # define _STLP_NEED_TYPENAME 1
|
||||
|
||||
// Uncomment this if your compiler does not support "mutable" keyword
|
||||
// # define _STLP_NEED_MUTABLE 1
|
||||
|
||||
// Uncomment this if your compiler does not support "explicit" keyword
|
||||
// # define _STLP_NEED_EXPLICIT 1
|
||||
|
||||
// Uncomment if new-style-casts like const_cast<> are not available
|
||||
// # define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
|
||||
// Uncomment this if your compiler does not have "bool" type
|
||||
// # define _STLP_NO_BOOL 1
|
||||
|
||||
// Uncomment this if your compiler does not have "bool" type, but has "bool" keyword reserved
|
||||
// # define _STLP_DONT_USE_BOOL_TYPEDEF 1
|
||||
|
||||
// Uncomment this if your compiler does not have "bool" type, but defines "bool" in <yvals.h>
|
||||
// # define _STLP_YVALS_H 1
|
||||
|
||||
// Uncomment this if your compiler has limited or no default template arguments for classes
|
||||
// # define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
|
||||
// Uncomment this if your compiler support only complete (not dependent on other parameters)
|
||||
// types as default parameters for class templates
|
||||
// # define _STLP_DEFAULT_TYPE_PARAM 1
|
||||
|
||||
// Uncomment this if your compiler has problem with not-type
|
||||
// default template parameters
|
||||
// # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
|
||||
// Define if compiler has
|
||||
// trouble with functions getting non-type-parameterized classes as parameters
|
||||
// # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
|
||||
// Uncomment this if your compiler lacks static data members.
|
||||
// Uncomment next line if your compiler supports __attribute__((weak))
|
||||
// # define _STLP_NO_STATIC_TEMPLATE_DATA 1
|
||||
// # define _STLP_WEAK_ATTRIBUTE 1
|
||||
|
||||
// Uncomment this if your compiler does not support namespaces
|
||||
// # define _STLP_HAS_NO_NAMESPACES 1
|
||||
|
||||
// Uncomment if "using" keyword does not work with template types
|
||||
// # define _STLP_BROKEN_USING_DIRECTIVE 1
|
||||
|
||||
// Uncomment this if your compiler does not support exceptions
|
||||
// # define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
|
||||
// Uncomment this if your compiler does not support exception specifications
|
||||
// # define _STLP_NO_EXCEPTION_SPEC
|
||||
|
||||
// Define this if your compiler requires return statement after throw()
|
||||
// # define _STLP_THROW_RETURN_BUG 1
|
||||
|
||||
// Define this if your compiler do not support return of void
|
||||
// # define _STLP_DONT_RETURN_VOID 1
|
||||
|
||||
// Header <new> that comes with the compiler
|
||||
// does not define bad_alloc exception
|
||||
// # define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
// Define this if your compiler do not throw bad_alloc from the new operator
|
||||
// # define _STLP_NEW_DONT_THROW 1
|
||||
|
||||
// Uncomment if member template methods are not available
|
||||
// # define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
|
||||
// Uncomment if member template classes are not available
|
||||
// # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
|
||||
// Uncomment if you cannot access member template classe throught a class template parameter
|
||||
// # define _STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM 1
|
||||
|
||||
// Uncomment if no "template" keyword should be used with member template classes
|
||||
// # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
|
||||
// Uncomment if friend member templates are not available
|
||||
// # define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
|
||||
// Compiler does not accept friend declaration qualified with namespace name.
|
||||
// # define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
|
||||
// Uncomment if partial specialization is not available
|
||||
// # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
|
||||
// Define if class being partially specialized require full name (template parameters)
|
||||
// of itself for method declarations
|
||||
// # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
|
||||
// Compiler has problems specializing members of partially
|
||||
// specialized class
|
||||
// # define _STLP_MEMBER_SPECIALIZATION_BUG
|
||||
|
||||
// Uncomment if partial order of template functions is not available
|
||||
// # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
|
||||
// Uncomment if specialization of methods is not allowed
|
||||
// # define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
|
||||
// Uncomment if full specialization does not use partial spec. syntax : template <> struct ....
|
||||
// # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
|
||||
// Uncomment if compiler does not support explicit template arguments for functions
|
||||
// # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
|
||||
// Uncomment if "__typetraits is being instaniated automatically by the compiler (SGI only ?)
|
||||
// # define _STLP_AUTOMATIC_TYPE_TRAITS 1
|
||||
|
||||
// Uncomment this if your compiler can't inline while(), for()
|
||||
// # define _STLP_LOOP_INLINE_PROBLEMS 1
|
||||
|
||||
// Define if the compiler fails to match a template function argument of base
|
||||
// # define _STLP_BASE_MATCH_BUG 1
|
||||
|
||||
// Define if the compiler fails to match a template function argument of base
|
||||
// (non-template)
|
||||
//# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
|
||||
// Define if the compiler rejects outline method definition
|
||||
// explicitly taking nested types/typedefs
|
||||
// # define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
|
||||
// Compiler requires typename keyword on outline method definition
|
||||
// explicitly taking nested types/typedefs
|
||||
// #define _STLP_TYPENAME_ON_RETURN_TYPE
|
||||
|
||||
// Define if the baseclass typedefs not visible from outside
|
||||
// # define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
||||
|
||||
// if your compiler have serious problems with typedefs, try this one
|
||||
// # define _STLP_BASE_TYPEDEF_BUG 1
|
||||
|
||||
// Uncomment if getting errors compiling mem_fun* adaptors
|
||||
// # define _STLP_MEMBER_POINTER_PARAM_BUG 1
|
||||
|
||||
// # define _STLP_UNINITIALIZABLE_PRIVATE 1
|
||||
|
||||
// Defined if the compiler
|
||||
// has trouble instantiating static array members with dimension defined as enum
|
||||
// # define _STLP_STATIC_ARRAY_BUG
|
||||
|
||||
// * _STLP_STATIC_CONST_INIT_BUG: defined if the compiler can't handle a
|
||||
// constant-initializer in the declaration of a static const data member
|
||||
// of integer type. (See section 9.4.2, paragraph 4, of the C++ standard.)
|
||||
// # define _STLP_STATIC_CONST_INIT_BUG
|
||||
|
||||
// Define if default constructor for builtin integer type fails to initialize it to 0
|
||||
// # define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
|
||||
// Defined if constructor
|
||||
// required to explicitly call member's default constructors for const objects
|
||||
// # define _STLP_CONST_CONSTRUCTOR_BUG 1
|
||||
|
||||
// Defined if the compiler has trouble calling POD-types constructors/destructors
|
||||
// # define _STLP_TRIVIAL_CONSTRUCTOR_BUG 1
|
||||
// # define _STLP_TRIVIAL_DESTRUCTOR_BUG 1
|
||||
|
||||
// Define if having problems specializing maps/sets with
|
||||
// key type being const
|
||||
// # define _STLP_MULTI_CONST_TEMPLATE_ARG_BUG
|
||||
|
||||
// Uncomment this to disable -> operators on all iterators
|
||||
// # define _STLP_NO_ARROW_OPERATOR 1
|
||||
|
||||
// Uncomment this to disble at() member functions for containers
|
||||
// # define _STLP_NO_AT_MEMBER_FUNCTION 1
|
||||
|
||||
// Uncomment if native new-style iostreams are not available
|
||||
// #define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
|
||||
// Define this if compiler lacks <exception> header
|
||||
// # define _STLP_NO_EXCEPTION_HEADER 1
|
||||
|
||||
// Uncomment this if your C library has lrand48() function
|
||||
// # define _STLP_RAND48 1
|
||||
|
||||
// Uncomment if native new-style C library headers lile <cstddef>, etc are not available.
|
||||
// # define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
// uncomment if new-style headers <new> is available
|
||||
// # define _STLP_HAS_NEW_NEW_HEADER 1
|
||||
|
||||
// uncomment this if <iostream> and other STD headers put their stuff in ::namespace,
|
||||
// not std::
|
||||
// # define _STLP_VENDOR_GLOBAL_STD
|
||||
|
||||
// uncomment this if <cstdio> and the like put stuff in ::namespace,
|
||||
// not std::
|
||||
// # define _STLP_VENDOR_GLOBAL_CSTD
|
||||
|
||||
// Edit relative path below (or put full path) to get native
|
||||
// compiler headers included. Default is "../include".
|
||||
// C headers may reside in different directory, so separate macro is provided.
|
||||
// Hint : never install STLport in the directory that ends with "include"
|
||||
// # define _STLP_NATIVE_INCLUDE_PATH ../include
|
||||
// # define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
// # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
|
||||
|
||||
// This macro constructs header path from directory and name.
|
||||
// You may change it if your compiler does not understand "/".
|
||||
// # define _STLP_MAKE_HEADER(path, header) <path/header>
|
||||
|
||||
// This macro constructs native include header path from include path and name.
|
||||
// You may have do define it if experirncing problems with preprocessor
|
||||
// # define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
|
||||
|
||||
// Same for C headers
|
||||
// #define _STLP_NATIVE_C_HEADER(header)
|
||||
|
||||
//==========================================================
|
||||
# endif
|
||||
35
STLPORT/stlport/config/stl_sco.h
Normal file
35
STLPORT/stlport/config/stl_sco.h
Normal file
@@ -0,0 +1,35 @@
|
||||
// SCO UDK 7 compiler (UnixWare 7x, OSR 5, UnixWare 2x)
|
||||
|
||||
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
// allocator::rebind used not to work properly
|
||||
// # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
// # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
|
||||
|
||||
// # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
|
||||
//# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
//# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
// ???
|
||||
//# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
|
||||
// ???
|
||||
//# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
|
||||
// ???
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
|
||||
# define _STLP_LONG_LONG long long
|
||||
|
||||
# if defined(_REENTRANT)
|
||||
# define _UITHREADS /* if UnixWare < 7.0.1 */
|
||||
# define _STLP_UITHREADS
|
||||
# endif /* _REENTRANT */
|
||||
|
||||
# define _STLP_SCO_OPENSERVER
|
||||
36
STLPORT/stlport/config/stl_select_lib.h
Normal file
36
STLPORT/stlport/config/stl_select_lib.h
Normal file
@@ -0,0 +1,36 @@
|
||||
# if !defined (_STLP_NO_OWN_IOSTREAMS)
|
||||
|
||||
# if ! defined (_STLP_LIB_STATIC_SUFFIX)
|
||||
# define _STLP_LIB_STATIC_SUFFIX ""
|
||||
# endif
|
||||
|
||||
// Note : the code below is intended to make use of compiled
|
||||
// STLport iostreams easier. If you are with to change names used for
|
||||
// STLport libraries , please also change RELEASE_NAME and DEBUG_NAME
|
||||
// macros in makefile ../../src/vc6.mak (or whatever .mak you are using to build
|
||||
// STLport). If you are using binaries, you may just rename the binaries.
|
||||
# if ! defined (__BUILDING_STLPORT) && ! defined (_STLP_DONT_FORCE_MSVC_LIB_NAME)
|
||||
# if defined (_STLP_USE_DECLSPEC)
|
||||
# ifdef _STLP_DEBUG
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME"_stldebug.lib")
|
||||
# elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB)
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME"_debug.lib")
|
||||
# else
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME".lib")
|
||||
# endif
|
||||
# else /* _STLP_USE_DECLSPEC */
|
||||
// fbp : for static linking, debug setting _MUST_ correspond to what
|
||||
// has been compiled into binary lib
|
||||
# ifdef _STLP_DEBUG
|
||||
# if (! defined (_DEBUG))
|
||||
# error "For static link with STLport library, _DEBUG setting MUST be on when _STLP_DEBUG is on. (/MTd forces _DEBUG)"
|
||||
# endif
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME"_stldebug"_STLP_LIB_STATIC_SUFFIX".lib")
|
||||
# elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB)
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME"_debug"_STLP_LIB_STATIC_SUFFIX".lib")
|
||||
# else
|
||||
# pragma comment(lib, _STLP_LIB_BASENAME""_STLP_LIB_STATIC_SUFFIX".lib")
|
||||
# endif
|
||||
# endif /* _STLP_USE_DECLSPEC */
|
||||
# endif /* __BUILDING_STLPORT */
|
||||
# endif /* _STLP_OWN_IOSTREAMS */
|
||||
94
STLPORT/stlport/config/stl_sgi.h
Normal file
94
STLPORT/stlport/config/stl_sgi.h
Normal file
@@ -0,0 +1,94 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
|
||||
// define native include path before trying to include anything
|
||||
|
||||
# define _STLP_NATIVE_HEADER(__x) </usr/include/CC/##__x>
|
||||
# define _STLP_NATIVE_C_HEADER(__x) </usr/include/##__x>
|
||||
# define _STLP_NATIVE_OLD_STREAMS_HEADER(__x) </usr/include/CC/##__x>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(__x) </usr/include/CC/##__x>
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(__x) </usr/include/CC/##__x>
|
||||
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T
|
||||
|
||||
#define _STLP_NO_CSTD_FUNCTION_IMPORTS
|
||||
#define _STLP_NO_NATIVE_WIDE_FUNCTIONS
|
||||
#define _STLP_NO_MEMBER_TEMPLATE_CLASSES
|
||||
|
||||
// #define _STLP_NO_BAD_ALLOC
|
||||
|
||||
#define _STL_HAS_NAMESPACES
|
||||
|
||||
#if ! defined (__EXCEPTIONS) && ! defined (_STLP_NO_EXCEPTIONS)
|
||||
# define _STLP_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
// #define _STLP_NOTHROW throw()
|
||||
|
||||
# define __EDG_SWITCHES
|
||||
|
||||
// any version ???
|
||||
# define _STLP_AUTOMATIC_TYPE_TRAITS 1
|
||||
|
||||
# define _STLP_USE_SGI_STRING 1
|
||||
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
// # define _STLP_VENDOR_GLOBAL_EXCEPT_STD
|
||||
|
||||
// # if ! defined (_STLP_NO_OWN_IOSTREAMS) && ! defined (_STLP_NO_NEW_IOSTREAMS)
|
||||
# define _STLP_NO_POST_COMPATIBLE_SECTION
|
||||
// # endif
|
||||
|
||||
# include <standards.h>
|
||||
|
||||
# if !(_COMPILER_VERSION >= 730)
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# endif
|
||||
|
||||
# if (_COMPILER_VERSION >= 730 && defined(_STANDARD_C_PLUS_PLUS))
|
||||
# define _STLP_EXTERN_RANGE_ERRORS
|
||||
# endif
|
||||
|
||||
# if !defined(_BOOL)
|
||||
# define _STLP_NO_BOOL
|
||||
# endif
|
||||
# if defined(_MIPS_SIM) && _MIPS_SIM == _ABIO32
|
||||
# define _STLP_STATIC_CONST_INIT_BUG
|
||||
# endif
|
||||
|
||||
# if (_COMPILER_VERSION < 720) || (defined(_MIPS_SIM) && _MIPS_SIM == _ABIO32)
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG
|
||||
# endif
|
||||
# if !((_COMPILER_VERSION >= 730) && defined(_MIPS_SIM) && _MIPS_SIM != _ABIO32)
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
|
||||
# endif
|
||||
# if !defined(_STANDARD_C_PLUS_PLUS)
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
# endif
|
||||
# if !((_COMPILER_VERSION >= 721) && defined(_NAMESPACES))
|
||||
# define _STLP_HAS_NO_NAMESPACES
|
||||
# endif
|
||||
# if (_COMPILER_VERSION < 721) || !defined(_STL_HAS_NAMESPACES) || defined(_STLP_NO_NAMESPACES)
|
||||
# define _STLP_NO_EXCEPTION_HEADER
|
||||
# endif
|
||||
# if _COMPILER_VERSION < 730 || !defined(_STANDARD_C_PLUS_PLUS) || !defined(_NAMESPACES)
|
||||
# define _STLP_NO_BAD_ALLOC
|
||||
# endif
|
||||
# if defined(_LONGLONG) && defined(_SGIAPI) && _SGIAPI
|
||||
# define _STLP_LONG_LONG long long
|
||||
# endif
|
||||
# if !(_COMPILER_VERSION >= 730 && defined(_STANDARD_C_PLUS_PLUS))
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# endif
|
||||
# if !(_COMPILER_VERSION >= 730 && defined(_STANDARD_C_PLUS_PLUS))
|
||||
# define _STLP_NO_AT_MEMBER_FUNCTION
|
||||
# endif
|
||||
// # if !(_COMPILER_VERSION >= 730 && defined(_STANDARD_C_PLUS_PLUS))
|
||||
# if !(_COMPILER_VERSION >= 721 && defined(_STANDARD_C_PLUS_PLUS))
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS
|
||||
# endif
|
||||
# if !((_COMPILER_VERSION >= 730) && defined(_MIPS_SIM) && _MIPS_SIM != _ABIO32)
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
|
||||
# endif
|
||||
35
STLPORT/stlport/config/stl_solaris.h
Normal file
35
STLPORT/stlport/config/stl_solaris.h
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
// include system features file
|
||||
# include <sys/feature_tests.h>
|
||||
|
||||
// system-dependent defines
|
||||
|
||||
# if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
|
||||
# define _STLP_HAS_NATIVE_FLOAT_ABS
|
||||
# endif
|
||||
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
|
||||
# define _STLP_RAND48 1
|
||||
#endif
|
||||
|
||||
#if (defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)) || defined (__SunOS_5_6)
|
||||
# define _STLP_WCHAR_SUNPRO_EXCLUDE 1
|
||||
# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
|
||||
#endif
|
||||
|
||||
// boris : this should always be defined for Solaris 5 & 6. Any ideas how to do it ?
|
||||
# if !(defined ( __KCC ) && __KCC_VERSION > 3400 ) && \
|
||||
((defined(__SunOS_5_5_1) || defined(__SunOS_5_6) ))
|
||||
# ifndef _STLP_NO_NATIVE_MBSTATE_T
|
||||
# define _STLP_NO_NATIVE_MBSTATE_T 1
|
||||
# endif
|
||||
# endif /* KCC */
|
||||
|
||||
// For SPARC we use lightweight synchronization
|
||||
# if defined (__sparc) /* && (defined (_REENTRANT) || defined (_PTHREADS)) */ \ && ((defined (__GNUC__) && defined (__sparc_v9__)) || \
|
||||
(defined (__sparcv9) && ! defined (_STLP_NO_OWN_IOSTREAMS)) ) \
|
||||
&& !defined(_NOTHREADS) && ! defined (_STLP_NO_SPARC_SOLARIS_THREADS)
|
||||
# define _STLP_SPARC_SOLARIS_THREADS
|
||||
# define _STLP_THREADS_DEFINED
|
||||
# endif
|
||||
|
||||
175
STLPORT/stlport/config/stl_sunpro.h
Normal file
175
STLPORT/stlport/config/stl_sunpro.h
Normal file
@@ -0,0 +1,175 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
# define _STLP_LONG_LONG long long
|
||||
# define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
|
||||
# if ! defined(_BOOL)
|
||||
# define _STLP_NO_BOOL 1
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC >= 0x500 ) && (!defined (__SUNPRO_CC_COMPAT) || (__SUNPRO_CC_COMPAT == 5 )) \
|
||||
&& defined (_STLP_NO_OWN_IOSTREAMS) && ! defined (_STLP_HAS_NO_NEW_IOSTREAMS)
|
||||
# error "The wrapper (_STLP_NO_OWN_IOSTREAMS) mode does not work well without _STLP_HAS_NO_NEW_IOSTREAMS. Please set this flag. You will also have to use -liostream option on link phase."
|
||||
// # define _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# endif
|
||||
|
||||
// compatibility mode stuff
|
||||
# if (__SUNPRO_CC >= 0x510) && (!defined (__SUNPRO_CC_COMPAT) || (__SUNPRO_CC_COMPAT == 5 ))
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CC/Cstd
|
||||
# define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../CC
|
||||
# elif (__SUNPRO_CC >= 0x500) && (!defined (__SUNPRO_CC_COMPAT) || (__SUNPRO_CC_COMPAT == 5 ))
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CC
|
||||
# elif (defined (__SUNPRO_CC_COMPAT) && __SUNPRO_CC_COMPAT == 4)
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CC4
|
||||
# else
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../CC
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC >= 0x500 ) && ( defined (_STLP_NO_NEW_IOSTREAMS) || defined (_STLP_HAS_NO_NEW_IOSTREAMS) )
|
||||
// if the project is set up to use libiostream (_STLP_NO_NEW_IOSTREAMS should be defined then),
|
||||
// use classic iostreams
|
||||
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../CCios
|
||||
# endif
|
||||
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
|
||||
# if (__SUNPRO_CC < 0x530)
|
||||
// those are tested and proved not to work...
|
||||
# define _STLP_STATIC_ARRAY_BUG 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
|
||||
# endif
|
||||
|
||||
|
||||
# if defined (_STLP_OWN_IOSTREAMS)
|
||||
//# if ! defined (_STLP_NO_OWN_NAMESPACE)
|
||||
//# define _STLP_NO_OWN_NAMESPACE
|
||||
//# endif
|
||||
# else
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# endif
|
||||
|
||||
// those do not depend on compatibility
|
||||
# if (__SUNPRO_CC < 0x510)
|
||||
# define _STLP_NO_TYPENAME_ON_RETURN_TYPE 1
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG 1
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC < 0x510) || (defined (__SUNPRO_CC_COMPAT) && (__SUNPRO_CC_COMPAT < 5))
|
||||
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
|
||||
// no partial , just for explicit one
|
||||
# define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# endif
|
||||
|
||||
// Features that depend on compatibility switch
|
||||
# if ( __SUNPRO_CC < 0x500 ) || (defined (__SUNPRO_CC_COMPAT) && (__SUNPRO_CC_COMPAT < 5))
|
||||
|
||||
# ifndef _STLP_HAS_NO_NEW_IOSTREAMS
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# endif
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
// # define _STLP_NO_RELOPS_NAMESPACE
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
# elif (__SUNPRO_CC < 0x510)
|
||||
// # define _STLP_NATIVE_C_HEADER(header) <../CC/##header##.SUNWCCh>
|
||||
# define _STLP_NATIVE_CPP_C_HEADER(header) <../CC/##header##.SUNWCCh>
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH /usr/include
|
||||
# elif defined( __SunOS_5_5_1 ) || defined( __SunOS_5_6 ) || defined( __SunOS_5_7 )
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../CC/std
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../CC/std
|
||||
# else
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH /usr/include
|
||||
# define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../CC/std
|
||||
# endif
|
||||
|
||||
|
||||
|
||||
# if ( __SUNPRO_CC < 0x500 )
|
||||
|
||||
# undef _STLP_NATIVE_C_HEADER
|
||||
# undef _STLP_NATIVE_CPP_C_HEADER
|
||||
|
||||
# define wint_t __wint_t
|
||||
// famous CC 4.2 bug
|
||||
# define _STLP_INLINE_STRING_LITERAL_BUG 1
|
||||
// /usr/include
|
||||
# define _STLP_NATIVE_C_INCLUDE_PATH ../include
|
||||
|
||||
// 4.2 cannot handle iterator_traits<_Tp>::iterator_category as a return type ;(
|
||||
# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
|
||||
|
||||
// 4.2 does not like it
|
||||
# undef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
|
||||
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_UNINITIALIZABLE_PRIVATE 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
|
||||
# define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
|
||||
# define _STLP_GLOBAL_NESTED_RETURN_TYPE_PARAM_BUG 1
|
||||
# undef _STLP_HAS_NO_NEW_C_HEADERS
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
// # define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
|
||||
|
||||
# if ( __SUNPRO_CC < 0x420 )
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# if ( __SUNPRO_CC > 0x401 )
|
||||
# if (__SUNPRO_CC==0x410)
|
||||
# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
||||
# endif
|
||||
# else
|
||||
// SUNPro C++ 4.0.1
|
||||
# define _STLP_BASE_MATCH_BUG 1
|
||||
# define _STLP_BASE_TYPEDEF_BUG 1
|
||||
# if ( __SUNPRO_CC < 0x401 )
|
||||
__GIVE_UP_WITH_STL(SUNPRO_401)
|
||||
# endif
|
||||
# endif /* 4.0.1 */
|
||||
# endif /* 4.2 */
|
||||
|
||||
# endif /* < 5.0 */
|
||||
|
||||
# include <config/stl_solaris.h>
|
||||
|
||||
#ifndef _MBSTATET_H
|
||||
# define _MBSTATET_H
|
||||
# undef _MBSTATE_T
|
||||
# define _MBSTATE_T
|
||||
typedef struct __mbstate_t {
|
||||
#if defined(_LP64)
|
||||
long __filler[4];
|
||||
#else
|
||||
int __filler[6];
|
||||
#endif
|
||||
} __mbstate_t;
|
||||
# ifndef _STLP_HAS_NO_NAMESPACES
|
||||
namespace std {
|
||||
typedef __mbstate_t mbstate_t;
|
||||
}
|
||||
using std::mbstate_t;
|
||||
#else
|
||||
typedef __mbstate_t mbstate_t;
|
||||
# endif
|
||||
#endif /* __MBSTATET_H */
|
||||
42
STLPORT/stlport/config/stl_symantec.h
Normal file
42
STLPORT/stlport/config/stl_symantec.h
Normal file
@@ -0,0 +1,42 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
// if not using maximum ANSI compatibility ( -A -Ab -Aw),
|
||||
// uncomment the following two lines:
|
||||
//# define _STLP_NO_BOOL 1
|
||||
//# define _STLP_NO_WCHAR_T 1
|
||||
|
||||
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
// # define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_QUALIFIED_FRIENDS 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
|
||||
// # define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
# define _STLP_NO_METHOD_SPECIALIZATION 1
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
// # define _STLP_NO_EXCEPTION_HEADER 1
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
# define _STLP_THROW_RETURN_BUG 1
|
||||
// # define _STLP_LINK_TIME_INSTANTIATION 1
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_UNINITIALIZABLE_PRIVATE 1
|
||||
|
||||
152
STLPORT/stlport/config/stl_watcom.h
Normal file
152
STLPORT/stlport/config/stl_watcom.h
Normal file
@@ -0,0 +1,152 @@
|
||||
// STLport configuration file
|
||||
// It is internal STLport header - DO NOT include it directly
|
||||
|
||||
# ifndef _STLP_NO_OWN_IOSTREAMS
|
||||
# define _STLP_NO_OWN_IOSTREAMS
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_RELOPS_NAMESPACE
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
|
||||
|
||||
# define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
|
||||
# define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
|
||||
# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
|
||||
|
||||
// On QNX, headers are supposed to be found in /usr/include,
|
||||
// so default "../include" should work.
|
||||
# ifndef __QNX__
|
||||
# define _STLP_NATIVE_INCLUDE_PATH ../h
|
||||
# endif
|
||||
|
||||
// Inline replacements for locking calls under Watcom
|
||||
// Define _STLP_NO_WATCOM_INLINE_INTERLOCK to keep using
|
||||
// standard WIN32 calls
|
||||
// Define _STL_MULTIPROCESSOR to enable lock
|
||||
#if !defined(_STLP_NO_WATCOM_INLINE_INTERLOCK)
|
||||
|
||||
long __stl_InterlockedIncrement( long *var );
|
||||
long __stl_InterlockedDecrement( long *var );
|
||||
|
||||
#ifdef _STL_MULTIPROCESSOR
|
||||
// Multiple Processors, add lock prefix
|
||||
#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
|
||||
".586" \
|
||||
"mov eax, 1" \
|
||||
"lock xadd [ecx], eax" \
|
||||
"inc eax" \
|
||||
value [eax];
|
||||
|
||||
|
||||
#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
|
||||
".586" \
|
||||
"mov eax, 0FFFFFFFFh" \
|
||||
"lock xadd [ecx], eax" \
|
||||
"dec eax" \
|
||||
value [eax];
|
||||
#else
|
||||
// Single Processor, lock prefix not needed
|
||||
#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
|
||||
".586" \
|
||||
"mov eax, 1" \
|
||||
"xadd [ecx], eax" \
|
||||
"inc eax" \
|
||||
value [eax];
|
||||
|
||||
#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
|
||||
".586" \
|
||||
"mov eax, 0FFFFFFFFh" \
|
||||
"xadd [ecx], eax" \
|
||||
"dec eax" \
|
||||
value [eax];
|
||||
#endif // _STL_MULTIPROCESSOR
|
||||
|
||||
long __stl_InterlockedExchange( long *Destination, long Value );
|
||||
|
||||
// xchg has auto-lock
|
||||
#pragma aux __stl_InterlockedExchange parm [ecx] [eax] = \
|
||||
".586" \
|
||||
"xchg eax, [ecx]" \
|
||||
value [eax];
|
||||
#else
|
||||
|
||||
#define __stl_InterlockedIncrement InterlockedIncrement
|
||||
#define __stl_InterlockedDecrement InterlockedDecrement
|
||||
#define __stl_InterlockedExchange InterlockedExchange
|
||||
#endif /* INLINE INTERLOCK */
|
||||
|
||||
#define _STLP_ATOMIC_INCREMENT(__x) __stl_InterlockedIncrement((long*)__x)
|
||||
#define _STLP_ATOMIC_DECREMENT(__x) __stl_InterlockedDecrement((long*)__x)
|
||||
#define _STLP_ATOMIC_EXCHANGE(__x, __y) __stl_InterlockedExchange((long*)__x, (long)__y)
|
||||
|
||||
// boris : is this true or just the header is not in /usr/include ?
|
||||
# ifdef __QNX__
|
||||
# define _STLP_NO_TYPEINFO 1
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
|
||||
# define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATES 1
|
||||
# define _STLP_NO_FRIEND_TEMPLATES 1
|
||||
# define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
|
||||
|
||||
|
||||
# define _STLP_LIMITED_DEFAULT_TEMPLATES 1
|
||||
# define _STLP_HAS_NO_NAMESPACES 1
|
||||
# define _STLP_NEED_TYPENAME 1
|
||||
|
||||
# if __WATCOMC__ < 1100
|
||||
# define _STLP_NO_WCHAR_T 1
|
||||
# define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
|
||||
# endif
|
||||
|
||||
# define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
|
||||
|
||||
# define _STLP_STATIC_CONST_INIT_BUG 1
|
||||
// # define _STLP_THROW_RETURN_BUG 1
|
||||
# define _STLP_NO_TEMPLATE_CONVERSIONS 1
|
||||
|
||||
# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
|
||||
|
||||
# define _STLP_HAS_NO_NEW_IOSTREAMS 1
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS 1
|
||||
# define _STLP_NO_NEW_NEW_HEADER 1
|
||||
# define _STLP_VENDOR_GLOBAL_STD
|
||||
|
||||
# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
|
||||
# define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
|
||||
# define _STLP_NONTEMPL_BASE_MATCH_BUG
|
||||
# define _STLP_NO_EXCEPTION_HEADER 1
|
||||
# define _STLP_NO_BAD_ALLOC 1
|
||||
|
||||
# define _STLP_NESTED_TYPE_PARAM_BUG 1
|
||||
|
||||
# define _STLP_NO_CSTD_FUNCTION_IMPORTS 1
|
||||
|
||||
# if (__WATCOM_CPLUSPLUS__ < 1100 )
|
||||
# define _STLP_NO_BOOL 1
|
||||
# define _STLP_NEED_EXPLICIT 1
|
||||
# define _STLP_NEED_MUTABLE 1
|
||||
# define _STLP_NO_ARROW_OPERATOR 1
|
||||
# endif
|
||||
// This one is present in 11, but apparently has bugs (with auto_ptr).
|
||||
# define _STLP_NO_NEW_STYLE_CASTS 1
|
||||
|
||||
// Get rid of Watcom's min and max macros
|
||||
#undef min
|
||||
#undef max
|
||||
|
||||
// for switches (-xs, -xss, -xst)
|
||||
//
|
||||
#if !(defined (__SW_XS) || defined (__SW_XSS) || defined(__SW_XST))
|
||||
# define _STLP_HAS_NO_EXCEPTIONS 1
|
||||
# endif
|
||||
|
||||
# if defined ( _MT ) && !defined (_NOTHREADS) && !defined (_REENTRANT)
|
||||
# define _REENTRANT 1
|
||||
# endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
188
STLPORT/stlport/config/stl_wince.h
Normal file
188
STLPORT/stlport/config/stl_wince.h
Normal file
@@ -0,0 +1,188 @@
|
||||
/*
|
||||
* File to have Windows CE Toolkit for VC++ 5.0 working with STLport
|
||||
* 09 - 03 - 1999
|
||||
* Origin : Giuseppe Govi - g.govi@iol.it
|
||||
*/
|
||||
|
||||
#ifndef _STLP_WINCE_H
|
||||
#define _STLP_WINCE_H
|
||||
|
||||
// this flag is being used by STLport
|
||||
# define _STLP_WINCE
|
||||
|
||||
#ifndef _MT // Always threaded in CE
|
||||
#define _MT
|
||||
#endif
|
||||
|
||||
#define _STLP_NO_NATIVE_MBSTATE_T
|
||||
#define _STLP_NO_TYPEINFO
|
||||
#define _STLP_NO_BAD_ALLOC
|
||||
#define _STLP_NO_NEW_NEW_HEADER
|
||||
#define _STLP_OWN_IOSTREAMS
|
||||
|
||||
// tell other parts no threads are there
|
||||
# define _STLP_NO_THREADS 1
|
||||
|
||||
// not all new-style headers are available...
|
||||
# define _STLP_HAS_NO_NEW_C_HEADERS
|
||||
|
||||
# undef _STLP_HAS_NO_EXCEPTIONS
|
||||
# define _STLP_HAS_NO_EXCEPTIONS
|
||||
# undef _STLP_NO_EXCEPTION_HEADER
|
||||
# define _STLP_NO_EXCEPTION_HEADER
|
||||
|
||||
// we have to use malloc instead of new
|
||||
# undef _STLP_USE_NEWALLOC
|
||||
# define _STLP_USE_MALLOC
|
||||
|
||||
//# ifdef _STLP_MSVC
|
||||
//# pragma warning (disable: 4786)
|
||||
//# endif
|
||||
|
||||
#ifdef _STLP_WINCE_USE_OUTPUTDEBUGSTRING
|
||||
#define _STLP_WINCE_TRACE(msg) OutputDebugString(msg)
|
||||
#else
|
||||
#define _STLP_WINCE_TRACE(msg) MessageBox(NULL,(msg),NULL,MB_OK)
|
||||
#endif
|
||||
|
||||
#ifndef __THROW_BAD_ALLOC
|
||||
#define __THROW_BAD_ALLOC _STLP_WINCE_TRACE(L"out of memory"); ExitThread(1)
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
typedef unsigned int size_t;
|
||||
#define _SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef _WCHAR_T_DEFINED
|
||||
typedef unsigned short wchar_t;
|
||||
#define _WCHAR_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef _TIME_T_DEFINED
|
||||
typedef unsigned long time_t;
|
||||
#define _TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
//ptrdiff_t is not defined in Windows CE SDK
|
||||
#ifndef _PTRDIFF_T_DEFINED
|
||||
typedef int ptrdiff_t;
|
||||
#define _PTRDIFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
//clock_t is not defined in Windows CE SDK
|
||||
#ifndef _CLOCK_T_DEFINED
|
||||
typedef long clock_t;
|
||||
#define _CLOCK_T_DEFINED
|
||||
#endif
|
||||
|
||||
//struct tm is not defined in Windows CE SDK
|
||||
#ifndef _TM_DEFINED
|
||||
struct tm {
|
||||
int tm_sec; /* seconds after the minute - [0,59] */
|
||||
int tm_min; /* minutes after the hour - [0,59] */
|
||||
int tm_hour; /* hours since midnight - [0,23] */
|
||||
int tm_mday; /* day of the month - [1,31] */
|
||||
int tm_mon; /* months since January - [0,11] */
|
||||
int tm_year; /* years since 1900 */
|
||||
int tm_wday; /* days since Sunday - [0,6] */
|
||||
int tm_yday; /* days since January 1 - [0,365] */
|
||||
int tm_isdst; /* daylight savings time flag */
|
||||
};
|
||||
#define _TM_DEFINED
|
||||
#endif
|
||||
|
||||
// Some useful routines that are missing in Windows CE SDK
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
char * __cdecl getenv(const char *);
|
||||
struct tm * __cdecl gmtime(const time_t *);
|
||||
int __cdecl remove(const char *);
|
||||
int __cdecl rename(const char *, const char *);
|
||||
time_t __cdecl time(time_t *);
|
||||
|
||||
#if (_WIN32_WCE < 300)
|
||||
char * __cdecl strrchr(const char *, int);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
#ifndef __PLACEMENT_NEW_INLINE
|
||||
inline void *__cdecl operator new(size_t, void *_P) { return (_P); }
|
||||
#define __PLACEMENT_NEW_INLINE
|
||||
#endif
|
||||
|
||||
// Only defined as macros in Windows CE SDK
|
||||
#include _STLP_NATIVE_C_HEADER(ctype.h)
|
||||
|
||||
#if (_WIN32_WCE < 300) // Only wide chars for older versions
|
||||
#define _isctype iswctype
|
||||
#endif
|
||||
|
||||
inline int (isalpha)(int c) { return _isctype(c, _ALPHA); }
|
||||
inline int (isupper)(int c) { return _isctype(c, _UPPER); }
|
||||
inline int (islower)(int c) { return _isctype(c, _LOWER); }
|
||||
inline int (isdigit)(int c) { return _isctype(c, _DIGIT); }
|
||||
inline int (isxdigit)(int c) { return _isctype(c, _HEX); }
|
||||
inline int (isspace)(int c) { return _isctype(c, _SPACE); }
|
||||
inline int (ispunct)(int c) { return _isctype(c, _PUNCT); }
|
||||
inline int (isalnum)(int c) { return _isctype(c, _ALPHA|_DIGIT); }
|
||||
inline int (isprint)(int c) { return _isctype(c, _BLANK|_PUNCT|_ALPHA|_DIGIT); }
|
||||
inline int (isgraph)(int c) { return _isctype(c, _PUNCT|_ALPHA|_DIGIT); }
|
||||
inline int (iscntrl)(int c) { return _isctype(c, _CONTROL); }
|
||||
inline int (isascii)(int c) { return ((unsigned)(c) < 0x80); }
|
||||
|
||||
#undef _isctype
|
||||
|
||||
inline int (iswalpha)(int c) { return iswctype(c, _ALPHA); }
|
||||
inline int (iswupper)(int c) { return iswctype(c, _UPPER); }
|
||||
inline int (iswlower)(int c) { return iswctype(c, _LOWER); }
|
||||
inline int (iswdigit)(int c) { return iswctype(c, _DIGIT); }
|
||||
inline int (iswxdigit)(int c) { return iswctype(c, _HEX); }
|
||||
inline int (iswspace)(int c) { return iswctype(c, _SPACE); }
|
||||
inline int (iswpunct)(int c) { return iswctype(c, _PUNCT); }
|
||||
inline int (iswalnum)(int c) { return iswctype(c, _ALPHA|_DIGIT); }
|
||||
inline int (iswprint)(int c) { return iswctype(c, _BLANK|_PUNCT|_ALPHA|_DIGIT); }
|
||||
inline int (iswgraph)(int c) { return iswctype(c, _PUNCT|_ALPHA|_DIGIT); }
|
||||
inline int (iswcntrl)(int c) { return iswctype(c, _CONTROL); }
|
||||
inline int (iswascii)(int c) { return ((unsigned)(c) < 0x80); }
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#if !defined(WIN32_LEAN_AND_MEAN) // Minimise windows includes
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#if !defined(VC_EXTRALEAN)
|
||||
#define VC_EXTRALEAN
|
||||
#endif
|
||||
#if !defined(STRICT)
|
||||
#define STRICT
|
||||
#endif
|
||||
#if !defined(NOMINMAX)
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
|
||||
#ifndef __WINDOWS__
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef _ABORT_DEFINED
|
||||
# define _STLP_ABORT() TerminateProcess(GetCurrentProcess(), 0)
|
||||
# define _ABORT_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef _ASSERT_DEFINED
|
||||
# define assert(expr) _STLP_ASSERT(expr)
|
||||
# define _ASSERT_DEFINED
|
||||
#endif
|
||||
|
||||
// they say it's needed
|
||||
# include <windows.h>
|
||||
|
||||
#endif /* _STLP_WCE_H */
|
||||
|
||||
|
||||
122
STLPORT/stlport/config/stlcomp.h
Normal file
122
STLPORT/stlport/config/stlcomp.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Purpose of this file :
|
||||
*
|
||||
* To hold COMPILER-SPECIFIC portion of STLport settings.
|
||||
* In general, user should not edit this file unless
|
||||
* using the compiler not recognized below.
|
||||
*
|
||||
* If your compiler is not being recognized yet,
|
||||
* please look for definitions of macros in stl_mycomp.h,
|
||||
* copy stl_mycomp.h to stl_YOUR_COMPILER_NAME,
|
||||
* adjust flags for your compiler, and add <include config/stl_YOUR_COMPILER_NAME>
|
||||
* to the secton controlled by unique macro defined internaly by your compiler.
|
||||
*
|
||||
* To change user-definable settings, please edit <../stl_user_config.h>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _STLP_COMP_H
|
||||
# define _STLP_COMP_H
|
||||
|
||||
# define __GIVE_UP_WITH_STL(message) void give_up() \
|
||||
{ upgrade_the_compiler_to_use_STL;}
|
||||
|
||||
/* distinguish real MSC from Metrowerks and Intel */
|
||||
# if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__ICL) && !defined (__COMO__)
|
||||
# define _STLP_MSVC _MSC_VER
|
||||
# endif
|
||||
|
||||
# if defined (__xlC__) || defined (__IBMC__) || defined ( __IBMCPP__ )
|
||||
/* AIX xlC, Visual Age C++ , OS-390 C++ */
|
||||
# include <config/stl_ibm.h>
|
||||
# elif defined (__INTEL_COMPILER) && defined(__unix__)
|
||||
/* Check intel before gcc, since newer versions define GNUC */
|
||||
# include <config/stl_icc.h>
|
||||
# elif defined (__GNUC__ )
|
||||
# include <config/stl_gcc.h>
|
||||
# elif defined (__KCC)
|
||||
# include <config/stl_kai.h>
|
||||
# elif defined(__sgi)
|
||||
# include <config/stl_sgi.h>
|
||||
# elif (defined(__OS400__))
|
||||
/* AS/400 C++ */
|
||||
# include <config/stl_as400.h>
|
||||
# elif defined(_STLP_MSVC)
|
||||
/* Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0 */
|
||||
# include <config/stl_msvc.h>
|
||||
# elif defined ( __BORLANDC__ )
|
||||
/* Borland C++ ( 4.x - 5.x ) */
|
||||
# include <config/stl_bc.h>
|
||||
# elif defined(__SUNPRO_CC) || defined (__SUNPRO_C)
|
||||
/* SUN CC 4.0.1-5.0 */
|
||||
# include <config/stl_sunpro.h>
|
||||
# elif defined (__WATCOM_CPLUSPLUS__) || defined (__WATCOMC__)
|
||||
/* Watcom C++ */
|
||||
# include <config/stl_watcom.h>
|
||||
# elif defined(__COMO__) || defined (__COMO_VERSION_)
|
||||
# include <config/stl_como.h>
|
||||
# elif defined (__DMC__)
|
||||
/* Digital Mars C++ */
|
||||
# include <config/stl_dm.h>
|
||||
# elif defined (__SC__) && (__SC__ < 0x800)
|
||||
/* Symantec 7.5 */
|
||||
# include <config/stl_symantec.h>
|
||||
# elif defined (__MRC__) || (defined (__SC__) && (__SC__ >= 0x882))
|
||||
/* Apple MPW SCpp 8.8.2
|
||||
* Apple MPW MrCpp 4.1.0 */
|
||||
# include <config/stl_apple.h>
|
||||
# elif defined (__MWERKS__)
|
||||
/* Metrowerks CodeWarrior */
|
||||
# include <config/stl_mwerks.h>
|
||||
# elif defined(__hpux)
|
||||
/* HP compilers */
|
||||
# include <config/stl_hpacc.h>
|
||||
# elif defined(__ICL)
|
||||
/* Intel reference compiler for Win */
|
||||
# include <config/stl_intel.h>
|
||||
/* SCO UDK 7 compiler (UnixWare 7x, OSR 5, UnixWare 2x) */
|
||||
# elif defined(__USLC__)
|
||||
# include <config/stl_sco.h>
|
||||
/* Apogee 4.x */
|
||||
# elif defined (__APOGEE__)
|
||||
# include <config/stl_apcc.h>
|
||||
# elif defined (__DECCXX) || defined (__DECC)
|
||||
# ifdef __vms
|
||||
# include <config/stl_dec_vms.h>
|
||||
# else
|
||||
# include <config/stl_dec.h>
|
||||
# endif
|
||||
# elif defined (__ISCPP__)
|
||||
# include <config/stl_is.h>
|
||||
# elif defined (__FCC_VERSION)
|
||||
/* Fujutsu Compiler, v4.0 assumed */
|
||||
# include <config/stl_fujitsu.h>
|
||||
# elif defined(_CRAY)
|
||||
/* Cray C++ 3.4 or 3.5 */
|
||||
# include <config/stl_cray.h>
|
||||
# else
|
||||
/* Unable to identify the compiler, issue error diagnostic.
|
||||
* Edit <config/stl_mycomp.h> to set STLport up for your compiler. */
|
||||
# include <config/stl_mycomp.h>
|
||||
# endif /* end of compiler choice */
|
||||
# undef __GIVE_UP_WITH_STL
|
||||
#endif
|
||||
|
||||
119
STLPORT/stlport/config/stlcomp.h.orig
Normal file
119
STLPORT/stlport/config/stlcomp.h.orig
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Purpose of this file :
|
||||
*
|
||||
* To hold COMPILER-SPECIFIC portion of STLport settings.
|
||||
* In general, user should not edit this file unless
|
||||
* using the compiler not recognized below.
|
||||
*
|
||||
* If your compiler is not being recognized yet,
|
||||
* please look for definitions of macros in stl_mycomp.h,
|
||||
* copy stl_mycomp.h to stl_YOUR_COMPILER_NAME,
|
||||
* adjust flags for your compiler, and add <include config/stl_YOUR_COMPILER_NAME>
|
||||
* to the secton controlled by unique macro defined internaly by your compiler.
|
||||
*
|
||||
* To change user-definable settings, please edit <../stl_user_config.h>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _STLP_COMP_H
|
||||
# define _STLP_COMP_H
|
||||
|
||||
# define __GIVE_UP_WITH_STL(message) void give_up() \
|
||||
{ upgrade_the_compiler_to_use_STL;}
|
||||
|
||||
/* distinguish real MSC from Metrowerks and Intel */
|
||||
# if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__ICL) && !defined (__COMO__)
|
||||
# define _STLP_MSVC _MSC_VER
|
||||
# endif
|
||||
|
||||
# if defined (__xlC__) || defined (__IBMC__) || defined ( __IBMCPP__ )
|
||||
/* AIX xlC, Visual Age C++ , OS-390 C++ */
|
||||
# include <config/stl_ibm.h>
|
||||
# elif defined (__GNUC__ )
|
||||
# include <config/stl_gcc.h>
|
||||
# elif defined (__KCC)
|
||||
# include <config/stl_kai.h>
|
||||
# elif defined(__sgi)
|
||||
# include <config/stl_sgi.h>
|
||||
# elif (defined(__OS400__))
|
||||
/* AS/400 C++ */
|
||||
# include <config/stl_as400.h>
|
||||
# elif defined(_STLP_MSVC)
|
||||
/* Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0 */
|
||||
# include <config/stl_msvc.h>
|
||||
# elif defined ( __BORLANDC__ )
|
||||
/* Borland C++ ( 4.x - 5.x ) */
|
||||
# include <config/stl_bc.h>
|
||||
# elif defined(__SUNPRO_CC) || defined (__SUNPRO_C)
|
||||
/* SUN CC 4.0.1-5.0 */
|
||||
# include <config/stl_sunpro.h>
|
||||
# elif defined (__WATCOM_CPLUSPLUS__) || defined (__WATCOMC__)
|
||||
/* Watcom C++ */
|
||||
# include <config/stl_watcom.h>
|
||||
# elif defined(__COMO__) || defined (__COMO_VERSION_)
|
||||
# include <config/stl_como.h>
|
||||
# elif defined (__DMC__)
|
||||
/* Digital Mars C++ */
|
||||
# include <config/stl_dm.h>
|
||||
# elif defined (__SC__) && (__SC__ < 0x800)
|
||||
/* Symantec 7.5 */
|
||||
# include <config/stl_symantec.h>
|
||||
# elif defined (__MRC__) || (defined (__SC__) && (__SC__ >= 0x882))
|
||||
/* Apple MPW SCpp 8.8.2
|
||||
* Apple MPW MrCpp 4.1.0 */
|
||||
# include <config/stl_apple.h>
|
||||
# elif defined (__MWERKS__)
|
||||
/* Metrowerks CodeWarrior */
|
||||
# include <config/stl_mwerks.h>
|
||||
# elif defined(__hpux)
|
||||
/* HP compilers */
|
||||
# include <config/stl_hpacc.h>
|
||||
# elif defined(__ICL)
|
||||
/* Intel reference compiler for Win */
|
||||
# include <config/stl_intel.h>
|
||||
/* SCO UDK 7 compiler (UnixWare 7x, OSR 5, UnixWare 2x) */
|
||||
# elif defined(__USLC__)
|
||||
# include <config/stl_sco.h>
|
||||
/* Apogee 4.x */
|
||||
# elif defined (__APOGEE__)
|
||||
# include <config/stl_apcc.h>
|
||||
# elif defined (__DECCXX) || defined (__DECC)
|
||||
# ifdef __vms
|
||||
# include <config/stl_dec_vms.h>
|
||||
# else
|
||||
# include <config/stl_dec.h>
|
||||
# endif
|
||||
# elif defined (__ISCPP__)
|
||||
# include <config/stl_is.h>
|
||||
# elif defined (__FCC_VERSION)
|
||||
/* Fujutsu Compiler, v4.0 assumed */
|
||||
# include <config/stl_fujitsu.h>
|
||||
# elif defined(_CRAY)
|
||||
/* Cray C++ 3.4 or 3.5 */
|
||||
# include <config/stl_cray.h>
|
||||
# else
|
||||
/* Unable to identify the compiler, issue error diagnostic.
|
||||
* Edit <config/stl_mycomp.h> to set STLport up for your compiler. */
|
||||
# include <config/stl_mycomp.h>
|
||||
# endif /* end of compiler choice */
|
||||
# undef __GIVE_UP_WITH_STL
|
||||
#endif
|
||||
|
||||
35
STLPORT/stlport/config/vc_select_lib.h
Normal file
35
STLPORT/stlport/config/vc_select_lib.h
Normal file
@@ -0,0 +1,35 @@
|
||||
# if !( defined(_STLP_WINCE) )
|
||||
# define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
# endif
|
||||
|
||||
# if !( defined(_STLP_MSVC) && _STLP_MSVC < 1100)
|
||||
# define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
|
||||
# define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
|
||||
# endif
|
||||
|
||||
# if !defined (_STLP_NO_OWN_IOSTREAMS)
|
||||
|
||||
# if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
|
||||
|| defined(_AFXDLL) || defined (_STLP_USE_DYNAMIC_LIB) ) \
|
||||
&& ! defined (_STLP_USE_STATIC_LIB)
|
||||
# undef _STLP_USE_DECLSPEC
|
||||
# define _STLP_USE_DECLSPEC 1
|
||||
# endif
|
||||
|
||||
# ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
|
||||
# define _STLP_IMPORT_TEMPLATE_KEYWORD extern
|
||||
# endif
|
||||
# define _STLP_EXPORT_TEMPLATE_KEYWORD
|
||||
|
||||
# if defined (_RTLDLL) && defined (_STLP_USE_STATIC_LIB)
|
||||
# define _STLP_LIB_STATIC_SUFFIX "_staticx"
|
||||
# else
|
||||
# define _STLP_LIB_STATIC_SUFFIX "_static"
|
||||
# endif
|
||||
|
||||
# include <config/stl_select_lib.h>
|
||||
|
||||
# endif /* _STLP_OWN_IOSTREAMS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user