source: CMT/v1r18p20050901/source/cmt_std.h @ 89

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

Fix std for Alpha

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