source: CMT/v1r18p20060606/source/cmt_std.h

Last change on this file was 92, checked in by arnault, 19 years ago

After merge from v1r18p20050901 fixes - see CL 282

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1//-----------------------------------------------------------
2// Copyright Christian Arnault LAL-Orsay CNRS
3// arnault@lal.in2p3.fr
4// See the complete license in cmt_license.txt "http://www.cecill.info".
5//-----------------------------------------------------------
6
7#ifndef __cmt_std_h__
8#define __cmt_std_h__
9
10#ifndef WIN32
11#ifndef linux
12#ifndef __CYGWIN__
13#define OLD_HEADERS 1
14#endif
15#endif
16#endif
17
18#ifdef OLD_HEADERS
19
20#ifdef WIN32
21#include <ios.h>
22#include <iomanip.h>
23#endif
24#include <iostream.h>
25#include <fstream.h>
26
27#define ios_base ios
28
29#define int_type int
30
31#else
32
33#include <iomanip>
34#include <iostream>
35#include <fstream>
36
37#define cout std::cout
38#define cerr std::cerr
39#define endl std::endl
40#define ofstream std::ofstream
41#define ifstream std::ifstream
42#define istream std::istream
43#define ostream std::ostream
44#define ios std::ios
45#define ios_base std::ios_base
46#define streambuf std::streambuf
47#define setw std::setw
48
49#endif
50
51#ifdef sun
52#ifndef _BOOL
53#undef NEED_BOOL
54#define NEED_BOOL
55#endif
56#endif
57
58#ifdef NEED_BOOL
59typedef enum { false, true } bool;
60#endif
61
62#endif
Note: See TracBrowser for help on using the repository browser.