--- ray/src/rt/devcomm.c 2011/10/05 17:20:55 2.16 +++ ray/src/rt/devcomm.c 2016/03/06 01:13:17 2.18 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: devcomm.c,v 2.16 2011/10/05 17:20:55 greg Exp $"; +static const char RCSid[] = "$Id: devcomm.c,v 2.18 2016/03/06 01:13:17 schorsch Exp $"; #endif /* * devcomm.c - communication routines for separate drivers. @@ -10,7 +10,7 @@ static const char RCSid[] = "$Id: devcomm.c,v 2.16 201 #include "copyright.h" #include -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(_WIN64) #include #endif @@ -65,7 +65,7 @@ final_connect(void) /* verify and initialize connec } -extern struct driver * +struct driver * slave_init( /* run rview in slave mode */ char *dname, char *id @@ -78,7 +78,7 @@ slave_init( /* run rview in slave mode */ } -extern struct driver * +struct driver * comm_init( /* set up and execute driver */ char *dname, char *id @@ -147,7 +147,7 @@ comm_close(void) /* done with driver */ fclose(devin); if (devchild < 0) return; -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(_WIN64) while ((pid = wait(0)) != -1 && pid != devchild) ; #endif @@ -250,11 +250,11 @@ comm_comin( /* read string from command line */ static void mygets( /* get string from file (with nul) */ - register char *s, - register FILE *fp + char *s, + FILE *fp ) { - register int c; + int c; while ((c = getc(fp)) != EOF) if ((*s++ = c) == '\0') @@ -265,8 +265,8 @@ mygets( /* get string from file (with nul) */ static void myputs( /* put string to file (with nul) */ - register char *s, - register FILE *fp + char *s, + FILE *fp ) { do