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

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

Fix for CYGWIN

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