source: CMT/v1r25p20140131/source/cmt_std.h

Last change on this file was 664, checked in by rybkin, 10 years ago

merge -r 646:663 HEAD

  • 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// Modified by Grigory Rybkin
6// See the complete license in cmt_license.txt "http://www.cecill.info".
7//-----------------------------------------------------------
8
9#ifndef __cmt_std_h__
10#define __cmt_std_h__
11
12#ifndef WIN32
13#ifndef __linux__
14#ifndef __CYGWIN__
15#ifndef __APPLE__
16#define OLD_HEADERS 1
17#endif
18#endif
19#endif
20#endif
21
22#ifdef OLD_HEADERS
23
24#ifdef WIN32
25#include <ios.h>
26#include <iomanip.h>
27#endif
28#include <iostream.h>
29#include <fstream.h>
30#include <sstream.h>
31
32#define ios_base ios
33
34#define int_type int
35
36#else
37
38#include <iomanip>
39#include <iostream>
40#include <fstream>
41#include <sstream>
42
43#define cout std::cout
44#define cerr std::cerr
45#define endl std::endl
46#define ofstream std::ofstream
47#define ifstream std::ifstream
48#define ostringstream std::ostringstream
49#define istream std::istream
50#define ostream std::ostream
51#define ios std::ios
52#define ios_base std::ios_base
53#define streambuf std::streambuf
54#define setw std::setw
55
56#endif
57
58#ifdef sun
59#ifndef _BOOL
60#undef NEED_BOOL
61#define NEED_BOOL
62#endif
63#endif
64
65#ifdef NEED_BOOL
66typedef enum { false, true } bool;
67#endif
68
69#endif
Note: See TracBrowser for help on using the repository browser.