def of _read only for console app

This commit is contained in:
h_vogt 2011-07-09 22:01:04 +00:00
parent 0892d04c8a
commit 2c8d477f68
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2011-07-09 Holger Vogt
* input.c: definition of _read only for Windows console
2011-07-09 Robert Larice
* src/frontend/gens.c ,
* src/frontend/subckt.c ,

View File

@ -19,7 +19,9 @@ $Id$
#ifdef _MSC_VER
#include "BaseTsd.h" /* for SSIZE_T */
#define ssize_t SSIZE_T
#define read _read
#ifndef HAS_WINDOWS
#define read _read /* only for console */
#endif
#endif
/* A special 'getc' so that we can deal with ^D properly. There is no way for