~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to ace/iosfwd.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
 
3
 
//=============================================================================
4
 
/**
5
 
 *  @file    iosfwd.h
6
 
 *
7
 
 *  iosfwd.h,v 1.20 2003/12/07 00:39:22 shuston Exp
8
 
 *
9
 
 *  @author Irfan Pyarali
10
 
 *
11
 
 *  This file contains the portability ugliness for the Standard C++
12
 
 *  Library.  As implementations of the "standard" emerge, this file
13
 
 *  will need to be updated.
14
 
 *
15
 
 *  This files deals with forward declaration for the stream
16
 
 *  classes.  Remember that since the new Standard C++ Library code
17
 
 *  for streams uses templates, simple forward declaration will not
18
 
 *  work.
19
 
 */
20
 
//=============================================================================
21
 
 
22
 
 
23
 
#ifndef ACE_IOSFWD_H
24
 
#define ACE_IOSFWD_H
25
 
 
26
 
#include /**/ "ace/pre.h"
27
 
 
28
 
#include "ace/config-all.h"
29
 
 
30
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
31
 
# pragma once
32
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
33
 
 
34
 
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
35
 
 
36
 
#if defined (__APPLE_CC__)
37
 
// Should this really be here?  dhinton
38
 
// FUZZ: disable check_for_streams_include
39
 
# include "ace/streams.h"
40
 
#endif
41
 
 
42
 
#if defined (ACE_HAS_STANDARD_CPP_LIBRARY)  && \
43
 
    (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
44
 
 
45
 
# if !defined (ACE_USES_OLD_IOSTREAMS) 
46
 
#   include /**/ <iosfwd>
47
 
# else
48
 
  // NOTE: If these forward declarations don't work (e.g. aren't
49
 
  //       portable), we may have to include "ace/streams.h" as a last
50
 
  //       resort.  Doing so would defeat the purpose of this header,
51
 
  //       unfortunately.
52
 
  class ios;
53
 
  class streambuf;
54
 
  class istream;
55
 
  class ostream;
56
 
  class iostream;
57
 
  class filebuf;
58
 
  class ifstream;
59
 
  class ofstream;
60
 
  class fstream;
61
 
# endif /* ! ACE_USES_OLD_IOSTREAMS */
62
 
 
63
 
# if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
64
 
             (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
65
 
 
66
 
#   if !defined (ACE_USES_OLD_IOSTREAMS)
67
 
      // Make these available in the global name space
68
 
      using std::ios;
69
 
      using std::streambuf;
70
 
      using std::istream;
71
 
      using std::ostream;
72
 
      using std::iostream;
73
 
      using std::filebuf;
74
 
      using std::ifstream;
75
 
      using std::ofstream;
76
 
      using std::fstream;
77
 
#   endif /* ! ACE_USES_OLD_IOSTREAMS */
78
 
 
79
 
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
80
 
 
81
 
#else /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
82
 
 
83
 
  class ios;
84
 
  class streambuf;
85
 
  class istream;
86
 
  class ostream;
87
 
  class iostream;
88
 
  class filebuf;
89
 
  class ifstream;
90
 
  class ofstream;
91
 
  class fstream;
92
 
 
93
 
# endif /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
94
 
 
95
 
#include /**/ "ace/post.h"
96
 
 
97
 
#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
98
 
 
99
 
#endif /* ACE_IOSFWD_H */