From 0a114e00579418033c9d9c36ea929d5628658cbf Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 4 Jul 2011 22:00:18 +0000 Subject: [PATCH] add SSIZE_T --- src/frontend/parser/input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/parser/input.c b/src/frontend/parser/input.c index 2b1315d30..14ef2ea43 100644 --- a/src/frontend/parser/input.c +++ b/src/frontend/parser/input.c @@ -16,6 +16,11 @@ $Id$ #include "input.h" #include "cpextern.h" #include "../display.h" +#ifdef _MSC_VER +#include "BaseTsd.h" // for ssize_t +#define ssize_t SSIZE_T +#define read _read +#endif /* A special 'getc' so that we can deal with ^D properly. There is no way for * stdio to know if we have typed a ^D after some other characters, so @@ -27,7 +32,7 @@ inchar(FILE *fp) #ifndef HAS_WINDOWS char c; - size_t i; + ssize_t i; if (cp_interactive && !cp_nocc) { do {