diff options
author | 2022-12-02 02:55:28 +1100 | |
---|---|---|
committer | 2022-12-02 02:55:28 +1100 | |
commit | 27e761f62866bb5fa3c0493bb4da8ae9fcc8dacc (patch) | |
tree | 2158620b042dba7ef1adedf217b259ca3e23978d | |
parent | 516f6b5d2b84c6f4a9aa447d651f3d5e6d113f6d (diff) |
debugger: Hopefully fix undefined names in Cocoa debugger.
-rw-r--r-- | src/osd/modules/debugger/osx/debugcommandhistory.h | 2 | ||||
-rw-r--r-- | 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 <Cocoa/Cocoa.h> 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); } } } |