diff --git a/ChangeLog b/ChangeLog index 3db7cd091..78c6f70d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 , diff --git a/src/frontend/parser/input.c b/src/frontend/parser/input.c index a8d289eb6..3aa72d82e 100644 --- a/src/frontend/parser/input.c +++ b/src/frontend/parser/input.c @@ -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