work around MSVC issue (nw)

This commit is contained in:
Vas Crabb 2017-05-15 10:33:52 +10:00
parent 0026135232
commit 6fbb04c725

View File

@ -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