Revision 1845

trunk/src/tools99/cifstrem.cpp (revision 1845)
75 75
 : ifstream(fn, ios::in | open_m) , file_name(fn)
76 76
#elif defined (__INTEL_COMPILER)
77 77
 : ifstream(fn) , file_name(fn)
78
#elif defined (__GNUDOS__)
79
 #if defined(__SUNPRO_CC)
78
#elif defined(__SUNPRO_CC)
80 79
 : ifstream(fn, ios::in | open_m) , file_name(fn)
81
 #else
82
 : ifstream(fn, ios::in | std::ios::openmode(open_m)) , file_name(fn)
83
 #endif
84 80
#elif defined (__ZTC__)
85 81
 : ios(&buffer), ifstream(fn, ios::in | open_m) , file_name(fn)
86 82
#else
87
  xxxx need to define this foir this compiler you idiot!
83
 : ifstream(fn, ios::in | std::ios::openmode(open_m)) , file_name(fn)
88 84
#endif
89 85
{
90
  #if defined(__ZTC__) || defined(__GNUDOS__) || defined (__WAT32__)
91
    bp = rdbuf();
92
  #endif
93
#if defined(__MSVC32__)
94
#  if (__MSVC32__  >= 7)
95
    bp = rdbuf();
96
#  endif
97
#endif
98
#if defined(__BORLANDC__)
99
#  if (__BORLANDC__  >= 0x0520)
100
    bp = rdbuf();
101
#  endif
102
#endif
86
  bp = rdbuf();
103 87
  COMMENT_CHAR = cc;
104 88
  if (this->good())
105 89
  {
......
261 245
  return *this;
262 246
}
263 247

  
264
#if defined(USE_LONG_LONG)
265 248
#if defined(__ADSGI__)
266 249
istream& istream::operator >> (long long & x)
267 250
{
......
288 271
  delete []s;
289 272
  return *this;
290 273
}
291
#endif
292 274

  
293 275
void js_strip_leading_zeros(char * s)
294 276
{
......
426 408
void cifstream::report_error(const char * msg) {;}
427 409

  
428 410
/*
429
#if defined(__GNUDOS__)
430
#  if !defined(__ADSGI__)
411
#if !defined(__ADSGI__)
431 412
  void strnset(char * comment_line, char x, size_t len)
432
#  else
413
#else
433 414
  void strnset(char * comment_line, const char x, size_t len)
434
#  endif
415
#endif
435 416
  {
436 417
    unsigned int tlen;
437 418
    //len=100;
......
440 421
    if (tlen>len)tlen=len;
441 422
    memset(comment_line,x,tlen);
442 423
  }
443
#endif
444 424
*/
trunk/src/tools99/cifstrem.h (revision 1845)
52 52
  #pragma interface
53 53
#endif
54 54

  
55
#if defined(linux) || defined(__GNUDOS__)
56
#define USE_LONG_LONG
57
#endif
58

  
59 55
#include <stdio.h>
60 56

  
61 57
#ifdef __WAT32__
......
75 71
  #include <dos.h>
76 72
  }
77 73
#endif
78

  
79
#if defined(__GNU__) || defined(__GNUDOS__)
80
  #if !defined(linux) && !defined(__CYGWIN32__) && !defined(__MINGW32__)
81
    #include <strstrea.h>
74
#if defined(__GNUC__)
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff