From 52caf4b456258ac9caede98197bb4b67394f7256 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Wed, 16 Jul 2025 14:12:35 +0200 Subject: [PATCH] Fix ata_parse_identity declaration, use ide.h in cfgfile.cpp --- cfgfile.cpp | 4 +--- include/ide.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 42ae3c6e..8c83d236 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -44,6 +44,7 @@ #ifdef WITH_SPECIALMONITORS #include "specialmonitors.h" #endif +#include "ide.h" #define cfgfile_warning write_log #define cfgfile_warning_obsolete write_log @@ -5180,9 +5181,6 @@ static bool parse_geo (const TCHAR *tname, struct uaedev_config_info *uci, struc ret = true; } - void ata_parse_identity(uae_u8 *out, struct uaedev_config_info *uci, bool *lba, bool *lba48, int *max_multiple); - bool ata_get_identity(struct ini_data *ini, uae_u8 *out, bool overwrite); - uae_u8 ident[512]; if (ata_get_identity(ini, ident, true)) { bool lba, lba48; diff --git a/include/ide.h b/include/ide.h index 207d3e26..ea5f8a0c 100644 --- a/include/ide.h +++ b/include/ide.h @@ -144,7 +144,7 @@ void alloc_ide_mem (struct ide_hdf **ide, int max, struct ide_thread_state *its) void ide_reset_device(struct ide_hdf *ide); void ata_byteswapidentity(uae_u8 *d); -void ata_parse_identity(uae_u8 *out, struct uaedev_config_info *uci, bool *lba48, int *max_multiple); +void ata_parse_identity(uae_u8 *out, struct uaedev_config_info *uci, bool *lba, bool *lba48, int *max_multiple); bool ata_get_identity(struct ini_data *ini, uae_u8 *out, bool overwrite); void start_ide_thread(struct ide_thread_state *its); -- 2.47.3