Include vars.h in wserv.c and scr-bx.c for enum VAR_TYPES

Also define STERM_C and include modval.h in scr-bx.c.

This allows us to remove the slightly bogus dummy definition of enum VAR_TYPES from modval.h, and use a simple
macro to redirect the declaration and use of get_int_var() to BX_get_int_var().
This commit is contained in:
Kevin Easton
2017-05-10 23:19:57 +10:00
parent 7173175adc
commit a329dd8404
3 changed files with 7 additions and 6 deletions

View File

@@ -25,6 +25,9 @@
#include "ircterm.h"
#include "screen.h"
#include "ircaux.h"
#include "vars.h"
#define STERM_C
#include "modval.h"
#include <sys/ioctl.h>
@@ -90,7 +93,7 @@ void ircpanic(char *string, ...)
return;
}
int get_int_var(int var)
int get_int_var(enum VAR_TYPES var)
{
return 1;
}