source: CMT/HEAD/source/cmt_std.h @ 674

Last change on this file since 674 was 663, checked in by rybkin, 10 years ago

See C.L. 522

  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[2]1//-----------------------------------------------------------
2// Copyright Christian Arnault LAL-Orsay CNRS
3// arnault@lal.in2p3.fr
[274]4// Modified by garonne@lal.in2p3.fr
[663]5// Modified by Grigory Rybkin
[2]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
[624]13#ifndef __linux__
[86]14#ifndef __CYGWIN__
[274]15#ifndef __APPLE__
[2]16#define OLD_HEADERS 1
17#endif
18#endif
[86]19#endif
[274]20#endif
[2]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>
[547]30#include <sstream.h>
[2]31
[92]32#define ios_base ios
33
[2]34#define int_type int
35
36#else
37
38#include <iomanip>
39#include <iostream>
40#include <fstream>
[547]41#include <sstream>
[2]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
[547]48#define ostringstream std::ostringstream
[2]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.