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 | #define OLD_HEADERS 1
|
---|
13 | #endif
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #ifdef OLD_HEADERS
|
---|
17 |
|
---|
18 | #ifdef WIN32
|
---|
19 | #include <ios.h>
|
---|
20 | #include <iomanip.h>
|
---|
21 | #endif
|
---|
22 | #include <iostream.h>
|
---|
23 | #include <fstream.h>
|
---|
24 |
|
---|
25 | #define int_type int
|
---|
26 |
|
---|
27 | #else
|
---|
28 |
|
---|
29 | #include <iomanip>
|
---|
30 | #include <iostream>
|
---|
31 | #include <fstream>
|
---|
32 |
|
---|
33 | #define cout std::cout
|
---|
34 | #define cerr std::cerr
|
---|
35 | #define endl std::endl
|
---|
36 | #define ofstream std::ofstream
|
---|
37 | #define ifstream std::ifstream
|
---|
38 | #define istream std::istream
|
---|
39 | #define ostream std::ostream
|
---|
40 | #define ios std::ios
|
---|
41 | #define ios_base std::ios_base
|
---|
42 | #define streambuf std::streambuf
|
---|
43 | #define setw std::setw
|
---|
44 |
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #ifdef sun
|
---|
48 | #ifndef _BOOL
|
---|
49 | #undef NEED_BOOL
|
---|
50 | #define NEED_BOOL
|
---|
51 | #endif
|
---|
52 | #endif
|
---|
53 |
|
---|
54 | #ifdef NEED_BOOL
|
---|
55 | typedef enum { false, true } bool;
|
---|
56 | #endif
|
---|
57 |
|
---|
58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.