add SSIZE_T

This commit is contained in:
h_vogt 2011-07-04 22:00:18 +00:00
parent 75ae33d0a3
commit 0a114e0057
1 changed files with 6 additions and 1 deletions

View File

@ -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 {