Guard against nasty surprises when building with -DESERGEEV off.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 5 Feb 2005 17:23:38 +0000 (17:23 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 5 Feb 2005 17:23:38 +0000 (17:23 +0000)
conio.c

diff --git a/conio.c b/conio.c
index 9f51c31987f2ddd65d2ad7137a7a2bdc6bfdac87..8c33917e897521dac3b0e18abc619be5e9f2d410 100644 (file)
--- 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)