From 27e761f62866bb5fa3c0493bb4da8ae9fcc8dacc Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 2 Dec 2022 02:55:28 +1100 Subject: [PATCH] debugger: Hopefully fix undefined names in Cocoa debugger. --- src/osd/modules/debugger/osx/debugcommandhistory.h | 2 ++ src/osd/modules/debugger/osx/debugcommandhistory.mm | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/osd/modules/debugger/osx/debugcommandhistory.h b/src/osd/modules/debugger/osx/debugcommandhistory.h index cf84ddc50f2..e505aa4435c 100644 --- a/src/osd/modules/debugger/osx/debugcommandhistory.h +++ b/src/osd/modules/debugger/osx/debugcommandhistory.h @@ -8,6 +8,8 @@ #import "debugosx.h" +#include "util/utilfwd.h" + #import diff --git a/src/osd/modules/debugger/osx/debugcommandhistory.mm b/src/osd/modules/debugger/osx/debugcommandhistory.mm index 5b0f05511b7..e2292f973b0 100644 --- a/src/osd/modules/debugger/osx/debugcommandhistory.mm +++ b/src/osd/modules/debugger/osx/debugcommandhistory.mm @@ -12,6 +12,8 @@ #import "debugcommandhistory.h" +#include "util/xmlfile.h" + @implementation MAMEDebugCommandHistory @@ -124,14 +126,14 @@ [self clear]; util::xml::data_node const *const hist = node->get_child(osd::debugger::NODE_WINDOW_HISTORY); if (hist) { - util::xml::data_node const *item = hist->get_child(NODE_HISTORY_ITEM); + util::xml::data_node const *item = hist->get_child(osd::debugger::NODE_HISTORY_ITEM); while (item) { if (item->get_value() && *item->get_value()) { while ([history count] >= length) [history removeLastObject]; [history insertObject:[NSString stringWithUTF8String:item->get_value()] atIndex:0]; } - item = item->get_next_sibling(NODE_HISTORY_ITEM); + item = item->get_next_sibling(osd::debugger::NODE_HISTORY_ITEM); } } }