Changeset 2993

Show
Ignore:
Timestamp:
02/13/03 01:25:08 (6 years ago)
Author:
miyoshi
Message:

* mw32mem.c (mw32_start): Set _CRT_fmode _O_BINARY for
Mingw-runtime-2.3 and the later versions.

* mw32term.c: Include limits.h in the Mingw environment.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • work/cvs2svn/src/ChangeLog.Meadow

    r2992 r2993  
     12003-02-13  MIYOSHI Masanori  <miyoshi@boreas.dti.ne.jp> 
     2 
     3        * mw32mem.c (mw32_start): Set _CRT_fmode _O_BINARY for 
     4        Mingw-runtime-2.3 and the later versions. 
     5 
     6        * mw32term.c: Include limits.h in the Mingw environment. 
     7 
    182003-02-12  MIYOSHI Masanori  <miyoshi@boreas.dti.ne.jp> 
    29 
  • work/cvs2svn/src/mw32mem.c

    r2814 r2993  
    113113     text files appropriately, in accordance with the MSDOS code.  */ 
    114114  _fmode = O_BINARY; 
     115 
     116#if defined (__MINGW32__) 
     117#if __MINGW32_MAJOR_VERSION >= 2 && __MINGW32_MINOR_VERSION >= 3 
     118 { 
     119   extern int _CRT_fmode; 
     120   _CRT_fmode = _O_BINARY; 
     121 } 
     122#endif /* __MINGW32_MAJOR_VERSION >= 2 && __MINGW32_MINOR_VERSION >= 3 */ 
     123#endif /* __MINGW32__ */ 
    115124 
    116125  /* This prevents ctrl-c's in shells running while we're suspended from 
  • work/cvs2svn/src/mw32term.c

    r2989 r2993  
    6969#include "process.h" 
    7070#include "atimer.h" 
     71#if defined (__MINGW32__) 
     72#include <limits.h> 
     73#endif /* __MINGW32__ */ 
    7174 
    7275#define mw32_any_window_to_frame mw32_any_window_to_frame