diff options
Diffstat (limited to 'src/devices/bus/pet/c2n.h')
-rw-r--r-- | src/devices/bus/pet/c2n.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/bus/pet/c2n.h b/src/devices/bus/pet/c2n.h index 4260ed8d64c..9ba47475815 100644 --- a/src/devices/bus/pet/c2n.h +++ b/src/devices/bus/pet/c2n.h @@ -6,10 +6,10 @@ **********************************************************************/ -#pragma once +#ifndef MAME_BUS_PET_C2N_H +#define MAME_BUS_PET_C2N_H -#ifndef __C2N__ -#define __C2N__ +#pragma once #include "cass.h" #include "formats/cbm_tap.h" @@ -28,13 +28,14 @@ class c2n_device : public device_t, { public: // construction/destruction - c2n_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source); c2n_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // optional information overrides virtual machine_config_constructor device_mconfig_additions() const override; protected: + c2n_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + // device-level overrides virtual void device_start() override; virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; @@ -76,10 +77,8 @@ public: // device type definition -extern const device_type C2N; -extern const device_type C1530; -extern const device_type C1531; - - +DECLARE_DEVICE_TYPE(C2N, c2n_device) +DECLARE_DEVICE_TYPE(C1530, c1530_device) +DECLARE_DEVICE_TYPE(C1531, c1531_device) -#endif +#endif // MAME_BUS_PET_C2N_H |