getch2: remove pointless ifdeffery

Apparently this was for MorphOS. If you really want to use that, ask
the devs to provide dummy headers and declarations for ioctl() instead.
This commit is contained in:
wm4 2013-10-17 23:16:18 +02:00
parent fbd932410a
commit 4a4d2155d8
1 changed files with 0 additions and 8 deletions

View File

@ -23,17 +23,11 @@
#include "config.h"
#if !defined(__MORPHOS__)
#define CONFIG_IOCTL
#endif
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#ifdef CONFIG_IOCTL
#include <sys/ioctl.h>
#endif
#ifdef HAVE_TERMIOS
#ifdef HAVE_TERMIOS_H
@ -333,14 +327,12 @@ int load_termcap(char *termtype){
}
void get_screen_size(void) {
#ifdef CONFIG_IOCTL
struct winsize ws;
if (ioctl(0, TIOCGWINSZ, &ws) < 0 || !ws.ws_row || !ws.ws_col)
return;
screen_width = ws.ws_col;
screen_height = ws.ws_row;
#endif
}
#define BUF_LEN 256