From: Eric S. Raymond Date: Sat, 5 Feb 2005 17:23:38 +0000 (+0000) Subject: Guard against nasty surprises when building with -DESERGEEV off. X-Git-Tag: 2.0~369 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=14c898877ad4032c54f25ce683ac916a73c660b2;p=super-star-trek.git Guard against nasty surprises when building with -DESERGEEV off. --- diff --git a/conio.c b/conio.c index 9f51c31..8c33917 100644 --- a/conio.c +++ b/conio.c @@ -305,20 +305,24 @@ void textmode (int mode) int wherex (void) { +#ifdef SERGEEV int y; int x; getyx(conio_scr,y,x); x++; return(x); +#endif /* SERGEEV */ } int wherey (void) { +#ifdef SERGEEV int y; int x; getyx(conio_scr,y,x); y++; return(y); +#endif /* SERGEEV */ } void window (int left,int top,int right,int bottom)