From 6fbb04c7258d5f4eb8acc73072ad1ce2ca274a2f Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 15 May 2017 10:33:52 +1000 Subject: [PATCH] work around MSVC issue (nw) --- src/devices/cpu/i8089/i8089.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/devices/cpu/i8089/i8089.h b/src/devices/cpu/i8089/i8089.h index 4e931b1a857..e4f1bb5ef2f 100644 --- a/src/devices/cpu/i8089/i8089.h +++ b/src/devices/cpu/i8089/i8089.h @@ -149,7 +149,12 @@ private: // device type definition +#ifndef _MSC_VER DECLARE_DEVICE_TYPE(I8089, i8089_device) - +#else +// MSVC seems to want to actually instantiate templates when it gets an extern template declaration, effectively defeating the purpose of extern template declatations altogether +// In this case it causes a problem because the required_device template can't be instantiated for the incomplete i8089_channel_device type +extern device_type const I8089; +#endif #endif // MAME_CPU_I8089_I8089_H