summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2011-04-17 14:00:22 +0000
committer smf- <smf-@users.noreply.github.com>2011-04-17 14:00:22 +0000
commitc97228231910c57b5ce8f7b31aa2fe7a598ae931 (patch)
tree70cb61aa86d9fb255d587501939a26dca28bfec5
parentf430376ca89c08d3518b654e14376911e79cecd7 (diff)
hack to get build to work on visual studio 2010, which breaks 16 bit device callbacks.
-rw-r--r--src/emu/devcb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/devcb.h b/src/emu/devcb.h
index 2fb37a3c1fa..32eefe92d43 100644
--- a/src/emu/devcb.h
+++ b/src/emu/devcb.h
@@ -86,7 +86,7 @@ UINT8 devcb_stub(device_t *device, offs_t offset)
// static template for a read16 stub function that calls through a given READ16_MEMBER
template<class _Class, UINT16 (_Class::*_Function)(address_space &, offs_t, UINT16)>
-UINT16 devcb_stub(device_t *device, offs_t offset)
+UINT16 devcb_stub16(device_t *device, offs_t offset)
{
_Class *target = downcast<_Class *>(device);
return (target->*_Function)(*memory_nonspecific_space(device->machine()), offset, 0xffff);
@@ -110,7 +110,7 @@ void devcb_stub(device_t *device, offs_t offset, UINT8 data)
// static template for a write16 stub function that calls through a given WRITE16_MEMBER
template<class _Class, void (_Class::*_Function)(address_space &, offs_t, UINT16, UINT16)>
-void devcb_stub(device_t *device, offs_t offset, UINT16 data)
+void devcb_stub16(device_t *device, offs_t offset, UINT16 data)
{
_Class *target = downcast<_Class *>(device);
(target->*_Function)(*memory_nonspecific_space(device->machine()), offset, data, 0xffff);