X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=conio.c;h=92598140141e2e12633872e123c3c08ab8fa2965;hp=adf42e5e58adfd0de2aa8489ab3a20551210f7a3;hb=222e7873f49cb4b28e872552e8cdc1a8a3e2a605;hpb=aac11e9fd173e65886e2ee33c556e84bb2859f77 diff --git a/conio.c b/conio.c index adf42e5..9259814 100644 --- a/conio.c +++ b/conio.c @@ -59,6 +59,7 @@ static void docolor (int color) /* Set DOS-like text mode colors */ wattron(conio_scr,COLOR_PAIR(1+(color&7)+((color&112)>>1))); } +#ifdef SERGEEV /* Call this before any call to linux conio - except the port functions ! */ void __attribute__((constructor)) initconio (void) /* This is needed, because ncurses needs to be initialized */ { @@ -90,6 +91,7 @@ void __attribute__((constructor)) initconio (void) /* This is needed, because nc textcolor(7); textbackground(0); } +#endif /* SERGEEV */ /* Call this on exiting your program */ void doneconio (void)