Revision 1912

trunk/src/linad99/fmm_disp.cpp (revision 1912)
74 74

  
75 75
#endif
76 76

  
77
#if defined(__NDPX__) || defined(__SUN__)  || defined(__GNU__)
77
#if !defined(_MSC_VER)
78 78
  void gotoxy(int x, int y) { ; }
79 79

  
80 80
/**
trunk/src/linad99/dmat_io2.cpp (revision 1912)
8 8
 * \file
9 9
 * Description not yet available.
10 10
 */
11
#define __USE_IOSTREAM__
12

  
11 13
#include "fvar.hpp"
12 14

  
13 15
#if defined(__TURBOC__)
......
16 18
  #include <iomanip.h>
17 19
  #include <fstream.h>
18 20
  #include <strstrea.h>
19
  #define __USE_IOSTREAM__
20 21
#endif
21 22

  
22
#ifdef __GNU__
23
  #define __USE_IOSTREAM__
24
#endif
25

  
26 23
#ifdef __SUN__
27 24
  #include <iostream.h>
28 25
  #include <iomanip.h>
29 26
  #include <fstream.h>
30 27
  #include <limits.h>
31 28
  #include <strstream.h>
32
  #define __USE_IOSTREAM__
33 29
#endif
34 30

  
35 31
#ifdef __ZTC__
......
39 35
  #else
40 36
    #include <strstream.h>
41 37
  #endif
42
  #define __USE_IOSTREAM__
43 38
#endif
44 39

  
45 40
#ifdef __NDPX__
46 41
  #include <iostream.h>
47 42
  #include <sstream.h>
48
  #define __USE_IOSTREAM__
49 43
#endif
50 44

  
51 45
#include <string.h>
trunk/src/linad99/gradstak.cpp (revision 1912)
281 281

  
282 282
    // save the current end of file in case we can't write the whole buffer
283 283
    end_pos = lseek(_GRADFILE_PTR,0L,SEEK_CUR);
284
    #if !defined(__NDPX__ ) && !defined(__SUN__)  && !defined(__GNU__)
284
#if defined(_MSC_VER)
285 285
    ierr = write(_GRADFILE_PTR, ptr_first, nbw);
286
    #else
286
#else
287 287
    ierr = write(_GRADFILE_PTR, (char*)ptr_first, nbw);
288
    #endif
288
#endif
289 289

  
290 290
    if  (ierr != nbw)
291 291
    {
......
294 294
      //save the end of file for this file so we can reposition later
295 295
      end_pos1 = end_pos;
296 296
      increment_current_gradfile_ptr();
297
      #if !defined(__NDPX__ ) && !defined(__SUN__)   && !defined(__GNU__)
297
#if defined(_MSC_VER)
298 298
      ierr = write(_GRADFILE_PTR, ptr_first, nbw);
299
      #else
299
#else
300 300
      ierr = write(_GRADFILE_PTR, (char*)ptr_first, nbw);
301
      #endif
301
#endif
302 302

  
303 303
      if  (ierr != nbw)
304 304
      {
305 305
        perror("Error writing to temporary gradient stack file");
306 306
        cerr <<"   File name: " << gradfile_name << "\n";
307
        #if !defined(__NDPX__ ) && !defined(__SUN__)   && !defined(__GNU__)
307
#if defined(_MSC_VER)
308 308
        cerr <<"   File length: "
309 309
             << filelength(_GRADFILE_PTR)
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff