From cd6a43165a50674b4d4aaf3967b763d0a4fd333c Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 9 Nov 2022 04:37:44 +0100 Subject: [PATCH] Fixed some compile-breaking mistakes. --- src/include/86box/hdc.h | 3 +++ src/machine/m_xt_olivetti.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/86box/hdc.h b/src/include/86box/hdc.h index 8ef2933ad..d281e2e03 100644 --- a/src/include/86box/hdc.h +++ b/src/include/86box/hdc.h @@ -28,6 +28,9 @@ * least 7 devices, with each device being \ * able to support 8 units, but hey... */ +#define HDC_NONE 0 +#define HDC_INTERNAL 1 + extern int hdc_current; extern const device_t st506_xt_xebec_device; /* st506_xt_xebec */ diff --git a/src/machine/m_xt_olivetti.c b/src/machine/m_xt_olivetti.c index 7eedc86bd..8913c998e 100644 --- a/src/machine/m_xt_olivetti.c +++ b/src/machine/m_xt_olivetti.c @@ -1189,7 +1189,7 @@ machine_xt_m240_init(const machine_t *model) mm58274_init(nvr, model->nvrmask + 1); - if (hdc_type == HDC_INTERNAL) + if (hdc_current == HDC_INTERNAL) device_add(&st506_xt_wd1002a_wx1_nobios_device); return ret;