stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from <boost/config/auto_link.hpp> and from
|
||||
// http://www.boost.org/more/separate_compilation.html, by John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_EXTERNAL_LIB_NAME)
|
||||
# if defined(BOOST_MSVC) \
|
||||
|| defined(__BORLANDC__) \
|
||||
|| (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
|
||||
|| (defined(__ICL) && defined(_MSC_EXTENSIONS)) \
|
||||
/**/
|
||||
# pragma comment(lib, BOOST_EXTERNAL_LIB_NAME)
|
||||
# endif
|
||||
# undef BOOST_EXTERNAL_LIB_NAME
|
||||
#endif
|
||||
|
||||
//------------------Enable automatic library variant selection----------------//
|
||||
|
||||
#if !defined(BOOST_IOSTREAMS_SOURCE) && \
|
||||
!defined(BOOST_ALL_NO_LIB) && \
|
||||
!defined(BOOST_IOSTREAMS_NO_LIB) \
|
||||
/**/
|
||||
|
||||
// Set the name of our library, this will get undef'ed by auto_link.hpp
|
||||
// once it's done with it.
|
||||
# define BOOST_LIB_NAME boost_iostreams
|
||||
|
||||
// If we're importing code from a dll, then tell auto_link.hpp about it.
|
||||
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
|
||||
# define BOOST_DYN_LINK
|
||||
# endif
|
||||
|
||||
// And include the header that does the work.
|
||||
# include <boost/config/auto_link.hpp>
|
||||
#endif // auto-linking disabled
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
|
||||
@@ -0,0 +1,48 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from <boost/config/auto_link.hpp> and from
|
||||
// http://www.boost.org/more/separate_compilation.html, by John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_BZIP2_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_BZIP2_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_BZIP2_BINARY)
|
||||
# if defined(BOOST_MSVC) || \
|
||||
defined(__BORLANDC__) || \
|
||||
(defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) || \
|
||||
(defined(__ICL) && defined(_MSC_EXTENSIONS)) \
|
||||
/**/
|
||||
|
||||
// Specify the name of the .lib file.
|
||||
# pragma comment(lib, BOOST_STRINGIZE(BOOST_BZIP2_BINARY))
|
||||
# endif
|
||||
#else
|
||||
# if !defined(BOOST_IOSTREAMS_SOURCE) && \
|
||||
!defined(BOOST_ALL_NO_LIB) && \
|
||||
!defined(BOOST_IOSTREAMS_NO_LIB) \
|
||||
/**/
|
||||
|
||||
// Set the name of our library, this will get undef'ed by auto_link.hpp
|
||||
// once it's done with it.
|
||||
# define BOOST_LIB_NAME boost_bzip2
|
||||
|
||||
// If we're importing code from a dll, then tell auto_link.hpp about it.
|
||||
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
|
||||
# define BOOST_DYN_LINK
|
||||
# endif
|
||||
|
||||
// And include the header that does the work.
|
||||
# include <boost/config/auto_link.hpp>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_BZIP2_HPP_INCLUDED
|
||||
@@ -0,0 +1,81 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/iostreams/detail/config/wide_streams.hpp>
|
||||
#include <cstddef>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
//------------------Support for codecvt with user-defined state types---------//
|
||||
|
||||
#if defined(__MSL_CPP__) || defined(__LIBCOMO__) || \
|
||||
BOOST_WORKAROUND(_STLPORT_VERSION, <= 0x450) || \
|
||||
defined(_LIBCPP_VERSION) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_NO_PRIMARY_CODECVT_DEFINITION
|
||||
#endif
|
||||
|
||||
#if defined(__GLIBCPP__) || defined(__GLIBCXX__) || \
|
||||
BOOST_WORKAROUND(_STLPORT_VERSION, > 0x450) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_EMPTY_PRIMARY_CODECVT_DEFINITION
|
||||
#endif
|
||||
|
||||
//------------------Check for codecvt ctor taking a reference count-----------//
|
||||
|
||||
#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) || \
|
||||
BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_NO_CODECVT_CTOR_FROM_SIZE_T
|
||||
#endif
|
||||
|
||||
//------------------Normalize codecvt::length---------------------------------//
|
||||
|
||||
#if !defined(__MSL_CPP__) && !defined(__LIBCOMO__) && \
|
||||
(!defined(BOOST_RWSTD_VER) || BOOST_RWSTD_VER < 0x04010300) && \
|
||||
(!defined(__MACH__) || !defined(__INTEL_COMPILER))
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER const
|
||||
#else
|
||||
# define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER
|
||||
#endif
|
||||
|
||||
//------------------Check for codecvt::max_length-----------------------------//
|
||||
|
||||
#if BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461)
|
||||
# define BOOST_IOSTREAMS_NO_CODECVT_MAX_LENGTH
|
||||
#endif
|
||||
|
||||
//------------------Put mbstate_t and codecvt in std--------------------------//
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_NO_LOCALE
|
||||
# include <locale>
|
||||
#endif
|
||||
|
||||
// From Robert Ramey's version of utf8_codecvt_facet.
|
||||
namespace std {
|
||||
|
||||
#if defined(__LIBCOMO__)
|
||||
using ::mbstate_t;
|
||||
#elif defined(BOOST_DINKUMWARE_STDLIB) && !defined(__BORLANDC__)
|
||||
using ::mbstate_t;
|
||||
#elif defined(__SGI_STL_PORT)
|
||||
#elif defined(BOOST_NO_STDC_NAMESPACE)
|
||||
using ::codecvt;
|
||||
using ::mbstate_t;
|
||||
#endif
|
||||
|
||||
} // End namespace std.
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#include <boost/config.hpp> // BOOST_MSVC.
|
||||
#include <boost/detail/workaround.hpp> // BOOST_WORKAROUND.
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable:4127) // Conditional expression is constant.
|
||||
# pragma warning(disable:4130) // Logical operation on address of string constant.
|
||||
# pragma warning(disable:4224) // Parameter previously defined as type.
|
||||
# pragma warning(disable:4244) // Conversion: possible loss of data.
|
||||
# pragma warning(disable:4512) // Assignment operator could not be generated.
|
||||
# pragma warning(disable:4706) // Assignment within conditional expression.
|
||||
# if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
|
||||
# pragma warning(disable:6334) // sizeof applied to an expression with an operator.
|
||||
# endif
|
||||
#else
|
||||
# if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
||||
# pragma warn -8008 // Condition always true/false.
|
||||
# pragma warn -8066 // Unreachable code.
|
||||
# pragma warn -8071 // Conversion may lose significant digits.
|
||||
# pragma warn -8072 // Suspicious pointer arithmetic.
|
||||
# pragma warn -8080 // identifier declared but never used.
|
||||
# endif
|
||||
#endif
|
||||
@@ -0,0 +1,37 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from http://www.boost.org/more/separate_compilation.html, by
|
||||
// John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
//------------------Enable dynamic linking on windows-------------------------//
|
||||
|
||||
#ifdef BOOST_HAS_DECLSPEC
|
||||
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
|
||||
# ifdef BOOST_IOSTREAMS_SOURCE
|
||||
# define BOOST_IOSTREAMS_DECL __declspec(dllexport)
|
||||
# else
|
||||
# define BOOST_IOSTREAMS_DECL __declspec(dllimport)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DECL
|
||||
# define BOOST_IOSTREAMS_DECL
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
# pragma warning(pop)
|
||||
#else
|
||||
# if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
||||
# pragma warn .8008 // Condition always true/false.
|
||||
# pragma warn .8066 // Unreachable code.
|
||||
# pragma warn .8071 // Conversion may lose significant digits.
|
||||
# pragma warn .8072 // Suspicious pointer arithmetic.
|
||||
# pragma warn .8080 // identifier declared but never used.
|
||||
# endif
|
||||
#endif
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Distributed under the Boost Software License, Version 1.0.(See accompanying
|
||||
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
*
|
||||
* See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
* File: boost/iostreams/detail/execute.hpp
|
||||
* Date: Thu Dec 06 13:21:54 MST 2007
|
||||
* Copyright: 2007-2008 CodeRage, LLC
|
||||
* Author: Jonathan Turkanis
|
||||
* Contact: turkanis at coderage dot com
|
||||
*
|
||||
* Defines the preprocessor symbol BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS for
|
||||
* platforms that use the implementation of std::fpos from the Dinkumware
|
||||
* Standard Library.
|
||||
*/
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
# if (defined(_YVALS) || defined(_CPPLIB_VER)) && !defined(__SGI_STL_PORT) && \
|
||||
!defined(_STLPORT_VERSION) && !defined(__QNX__) && !defined(_VX_CPU)
|
||||
/**/
|
||||
|
||||
#include <boost/iostreams/detail/ios.hpp>
|
||||
|
||||
# define BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS
|
||||
|
||||
#if !defined(_FPOSOFF)
|
||||
#define BOOST_IOSTREAMS_FPOSOFF(fp) ((long long)(fp))
|
||||
#else
|
||||
#define BOOST_IOSTREAMS_FPOSOFF(fp) _FPOSOFF(fp)
|
||||
#endif
|
||||
|
||||
# endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
|
||||
@@ -0,0 +1,27 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from <boost/config/auto_link.hpp> and from
|
||||
// http://www.boost.org/more/separate_compilation.html, by John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_GCC_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_GCC_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp> // BOOST_INTEL.
|
||||
|
||||
#if defined(__GNUC__) && !defined(BOOST_INTEL)
|
||||
# define BOOST_IOSTREAMS_GCC (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||
# define BOOST_IOSTREAMS_GCC_WORKAROUND_GUARD 1
|
||||
#else
|
||||
# define BOOST_IOSTREAMS_GCC_WORKAROUND_GUARD 0
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_GCC_HPP_INCLUDED
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_LIMITS_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_LIMITS_HPP_INCLUDED
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_MAX_FORWARDING_ARITY
|
||||
# define BOOST_IOSTREAMS_MAX_FORWARDING_ARITY 3
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_MAX_EXECUTE_ARITY
|
||||
# define BOOST_IOSTREAMS_MAX_EXECUTE_ARITY 5
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_LIMITS_HPP_INCLUDED
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from <boost/config/auto_link.hpp> and from
|
||||
// http://www.boost.org/more/separate_compilation.html, by John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp> // BOOST_MSVC.
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/iostreams/detail/config/gcc.hpp>
|
||||
|
||||
#if !defined(BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION)
|
||||
# if BOOST_WORKAROUND(__MWERKS__, <= 0x3003) || \
|
||||
BOOST_WORKAROUND(__BORLANDC__, < 0x600) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Distributed under the Boost Software License, Version 1.0.(See accompanying
|
||||
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
*
|
||||
* See http://www.boost.org/libs/iostreams for documentation.
|
||||
*
|
||||
* Defines preprocessor symbols expanding to the names of functions in the
|
||||
* C runtime library used to access file descriptors and to the type used
|
||||
* to store file offsets for seeking.
|
||||
*
|
||||
* File: boost/iostreams/detail/config/rtl.hpp
|
||||
* Date: Wed Dec 26 11:58:11 MST 2007
|
||||
*
|
||||
* Copyright: 2007-2008 CodeRage, LLC
|
||||
* Author: Jonathan Turkanis
|
||||
* Contact: turkanis at coderage dot com
|
||||
*/
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_RTL_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_RTL_HPP_INCLUDED
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/iostreams/detail/config/windows_posix.hpp>
|
||||
|
||||
// Handle open, close, read, and write
|
||||
#ifdef __BORLANDC__
|
||||
# define BOOST_IOSTREAMS_RTL(x) BOOST_JOIN(_rtl_, x)
|
||||
#elif defined BOOST_IOSTREAMS_WINDOWS
|
||||
# define BOOST_IOSTREAMS_RTL(x) BOOST_JOIN(_, x)
|
||||
#else
|
||||
# define BOOST_IOSTREAMS_RTL(x) ::x // Distinguish from member function named x
|
||||
#endif
|
||||
#define BOOST_IOSTREAMS_FD_OPEN BOOST_IOSTREAMS_RTL(open)
|
||||
#define BOOST_IOSTREAMS_FD_CLOSE BOOST_IOSTREAMS_RTL(close)
|
||||
#define BOOST_IOSTREAMS_FD_READ BOOST_IOSTREAMS_RTL(read)
|
||||
#define BOOST_IOSTREAMS_FD_WRITE BOOST_IOSTREAMS_RTL(write)
|
||||
|
||||
// Handle lseek, off_t, ftruncate, and stat
|
||||
#ifdef BOOST_IOSTREAMS_WINDOWS
|
||||
# if defined(BOOST_MSVC) || defined(__MSVCRT__) // MSVC, MinGW
|
||||
# define BOOST_IOSTREAMS_FD_SEEK _lseeki64
|
||||
# define BOOST_IOSTREAMS_FD_OFFSET __int64
|
||||
# else // Borland, Metrowerks, ...
|
||||
# define BOOST_IOSTREAMS_FD_SEEK lseek
|
||||
# define BOOST_IOSTREAMS_FD_OFFSET long
|
||||
# endif
|
||||
#else // Non-windows
|
||||
# if defined(_LARGEFILE64_SOURCE) && !defined(__APPLE__) && \
|
||||
(!defined(_FILE_OFFSET_BITS) || _FILE_OFFSET_BITS != 64) || \
|
||||
defined(_AIX) && !defined(_LARGE_FILES) || \
|
||||
defined(BOOST_IOSTREAMS_HAS_LARGE_FILE_EXTENSIONS)
|
||||
/**/
|
||||
|
||||
/* Systems with transitional extensions for large file support */
|
||||
|
||||
# define BOOST_IOSTREAMS_FD_SEEK lseek64
|
||||
# define BOOST_IOSTREAMS_FD_TRUNCATE ftruncate64
|
||||
# define BOOST_IOSTREAMS_FD_MMAP mmap64
|
||||
# define BOOST_IOSTREAMS_FD_STAT stat64
|
||||
# define BOOST_IOSTREAMS_FD_FSTAT fstat64
|
||||
# define BOOST_IOSTREAMS_FD_OFFSET off64_t
|
||||
# else
|
||||
# define BOOST_IOSTREAMS_FD_SEEK lseek
|
||||
# define BOOST_IOSTREAMS_FD_TRUNCATE ftruncate
|
||||
# define BOOST_IOSTREAMS_FD_MMAP mmap
|
||||
# define BOOST_IOSTREAMS_FD_STAT stat
|
||||
# define BOOST_IOSTREAMS_FD_FSTAT fstat
|
||||
# define BOOST_IOSTREAMS_FD_OFFSET off_t
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_RTL_HPP_INCLUDED
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// (C) Copyright 2010 Daniel James
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#if defined(_MSC_VER) || defined(__GNUC__)
|
||||
#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
|
||||
BOOST_UNREACHABLE_RETURN(x)
|
||||
#else
|
||||
#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
|
||||
return x;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,55 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from http://www.boost.org/more/separate_compilation.html, by
|
||||
// John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <cstddef>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
//------------------Templated stream support----------------------------------//
|
||||
|
||||
// From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for cray patch.
|
||||
#ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
|
||||
# if defined(__STL_CONFIG_H) && \
|
||||
!defined (__STL_USE_NEW_IOSTREAMS) && !defined(__crayx1) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
|
||||
# endif
|
||||
#endif // #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
|
||||
|
||||
//------------------Wide stream support---------------------------------------//
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS
|
||||
# if defined(BOOST_IOSTREAMS_NO_STREAM_TEMPLATES) || \
|
||||
defined (BOOST_NO_STD_WSTREAMBUF) && \
|
||||
( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_NO_WIDE_STREAMS
|
||||
# endif
|
||||
#endif // #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS
|
||||
|
||||
//------------------Locale support--------------------------------------------//
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_NO_LOCALE
|
||||
# if defined(BOOST_NO_STD_LOCALE) || \
|
||||
defined(__CYGWIN__) && \
|
||||
( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_NO_LOCALE
|
||||
# endif
|
||||
#endif // #ifndef BOOST_IOSTREAMS_NO_LOCALE
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2004-2007 Jonathan Turkanis
|
||||
// (C) Copyright 2002, 2003 Beman Dawes Boost.Filesystem
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED
|
||||
|
||||
//------------------From boost/libs/filesystem/src/path_posix_windows.cpp-----//
|
||||
|
||||
// BOOST_IOSTREAMS_POSIX or BOOST_IOSTREAMS_WINDOWS specify which API to use.
|
||||
#if !defined( BOOST_IOSTREAMS_WINDOWS ) && !defined( BOOST_IOSTREAMS_POSIX )
|
||||
# if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && \
|
||||
!defined(__CYGWIN__) \
|
||||
/**/
|
||||
# define BOOST_IOSTREAMS_WINDOWS
|
||||
# else
|
||||
# define BOOST_IOSTREAMS_POSIX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED
|
||||
@@ -0,0 +1,50 @@
|
||||
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
|
||||
// (C) Copyright 2003-2007 Jonathan Turkanis
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
// Adapted from <boost/config/auto_link.hpp> and from
|
||||
// http://www.boost.org/more/separate_compilation.html, by John Maddock.
|
||||
|
||||
#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED
|
||||
#define BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp> // BOOST_STRINGIZE.
|
||||
|
||||
#if defined(BOOST_ZLIB_BINARY)
|
||||
# if defined(BOOST_MSVC) || \
|
||||
defined(__BORLANDC__) || \
|
||||
(defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) || \
|
||||
(defined(__ICL) && defined(_MSC_EXTENSIONS)) \
|
||||
/**/
|
||||
|
||||
// Specify the name of the .lib file.
|
||||
# pragma comment(lib, BOOST_STRINGIZE(BOOST_ZLIB_BINARY))
|
||||
# endif
|
||||
#else
|
||||
# if !defined(BOOST_IOSTREAMS_SOURCE) && \
|
||||
!defined(BOOST_ALL_NO_LIB) && \
|
||||
!defined(BOOST_IOSTREAMS_NO_LIB) \
|
||||
/**/
|
||||
|
||||
// Set the name of our library, this will get undef'ed by auto_link.hpp
|
||||
// once it's done with it.
|
||||
# define BOOST_LIB_NAME boost_zlib
|
||||
|
||||
// If we're importing code from a dll, then tell auto_link.hpp about it.
|
||||
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
|
||||
# define BOOST_DYN_LINK
|
||||
# endif
|
||||
|
||||
// And include the header that does the work.
|
||||
# include <boost/config/auto_link.hpp>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED
|
||||
Reference in New Issue
Block a user