• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Distributed under the Boost Software License, Version 1.0.(See accompanying
3  * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4  *
5  * See http://www.boost.org/libs/iostreams for documentation.
6 
7  * File:        boost/iostreams/detail/execute.hpp
8  * Date:        Thu Dec 06 13:21:54 MST 2007
9  * Copyright:   2007-2008 CodeRage, LLC
10  * Author:      Jonathan Turkanis
11  * Contact:     turkanis at coderage dot com
12  *
13  * Defines the preprocessor symbol BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS for
14  * platforms that use the implementation of std::fpos from the Dinkumware
15  * Standard Library.
16  */
17 
18 #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
19 #define BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
20 
21 #if defined(_MSC_VER)
22 # pragma once
23 #endif
24 
25 #include <boost/config.hpp>
26 
27 # if (defined(_YVALS) || defined(_CPPLIB_VER)) && !defined(__SGI_STL_PORT) && \
28      !defined(_STLPORT_VERSION) && !defined(__QNX__) && !defined(_VX_CPU) && !defined(__VXWORKS__) \
29      && !((defined(BOOST_MSVC) || defined(BOOST_CLANG)) && _MSVC_STL_VERSION >= 141)
30      /**/
31 
32 #include <boost/iostreams/detail/ios.hpp>
33 
34 #  define BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS
35 
36 #if !defined(_FPOSOFF)
37 #define BOOST_IOSTREAMS_FPOSOFF(fp) ((long long)(fp))
38 #else
39 #define BOOST_IOSTREAMS_FPOSOFF(fp) _FPOSOFF(fp)
40 #endif
41 
42 # endif
43 
44 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_FPOS_HPP_INCLUDED
45