~ubuntu-branches/ubuntu/quantal/poco/quantal

« back to all changes in this revision

Viewing changes to Foundation/include/Poco/StreamUtil.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Burghardt
  • Date: 2008-11-15 11:39:15 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081115113915-7kauhm2c3m2i7oid
Tags: 1.3.3p1-2
* Fixed FTBFS with GCC 4.4 due to missing #include (Closes: #505619)
* Renamed 20_gcc43-missing-include.dpatch to 20_gcc44-missing-include.dpatch
* Downgraded dependencies on -dbg packages (Closes: #504342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// StreamUtil.h
3
3
//
4
 
// $Id: //poco/1.3/Foundation/include/Poco/StreamUtil.h#1 $
 
4
// $Id: //poco/1.3/Foundation/include/Poco/StreamUtil.h#2 $
5
5
//
6
6
// Library: Foundation
7
7
// Package: Streams
45
45
 
46
46
// poco_ios_init
47
47
//
48
 
// This is a workaround for a bug in the Microsoft
 
48
// This is a workaround for a bug in the Dinkumware
49
49
// implementation of iostreams.
50
50
//
51
51
// Calling basic_ios::init() multiple times for the
90
90
// Some stream implementations, however, require that
91
91
// init() is called in the MyIOS constructor.
92
92
// Therefore we replace each call to init() with
93
 
// the following macro:
94
 
#if defined(_MSC_VER) && (!defined(_STLP_MSVC) || defined(_STLP_NO_OWN_IOSTREAMS))
95
 
#define poco_ios_init(buf)
 
93
// the poco_ios_init macro defined below.
 
94
 
 
95
 
 
96
#if !defined(POCO_IOS_INIT_HACK)
 
97
        // Microsoft Visual Studio with Dinkumware STL (but not STLport)
 
98
#       if defined(_MSC_VER) && (!defined(_STLP_MSVC) || defined(_STLP_NO_OWN_IOSTREAMS))
 
99
#               define POCO_IOS_INIT_HACK 1
 
100
    // QNX with Dinkumware but not GNU C++ Library
 
101
#       elif defined(__QNX__) && !defined(__GLIBCPP__)
 
102
#               define POCO_IOS_INIT_HACK 1
 
103
#       endif
 
104
#endif
 
105
 
 
106
 
 
107
#if defined(POCO_IOS_INIT_HACK)
 
108
#       define poco_ios_init(buf)
96
109
#else
97
 
#define poco_ios_init(buf) init(buf)
 
110
#       define poco_ios_init(buf) init(buf)
98
111
#endif
99
112
 
100
113