source: CMT/v1r25/source/cmt_std.h

Last change on this file was 547, checked in by rybkin, 14 years ago

See C.L. 432

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