summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/segam1audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/segam1audio.h')
-rw-r--r--src/mame/audio/segam1audio.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/segam1audio.h b/src/mame/audio/segam1audio.h
index fcbacf98dc1..d6f2ea3620a 100644
--- a/src/mame/audio/segam1audio.h
+++ b/src/mame/audio/segam1audio.h
@@ -1,15 +1,15 @@
// license:BSD-3-Clause
// copyright-holders:R. Belmont
-#pragma once
-
-#ifndef __SEGAM1AUDIO_H__
-#define __SEGAM1AUDIO_H__
+#ifndef MAME_AUDIO_SEGAM1AUDIO_H
+#define MAME_AUDIO_SEGAM1AUDIO_H
#include "cpu/m68000/m68000.h"
#include "machine/i8251.h"
#include "sound/2612intf.h"
#include "sound/multipcm.h"
+#pragma once
+
#define M1AUDIO_CPU_REGION "m1sndcpu"
#define M1AUDIO_MPCM1_REGION "m1pcm1"
#define M1AUDIO_MPCM2_REGION "m1pcm2"
@@ -35,7 +35,7 @@ public:
virtual machine_config_constructor device_mconfig_additions() const override;
// static configuration
- template<class _Object> static devcb_base &set_rxd_handler(device_t &device, _Object &&object) { return downcast<segam1audio_device &>(device).m_rxd_handler.set_callback(std::forward<_Object>(object)); }
+ template <class Object> static devcb_base &set_rxd_handler(device_t &device, Object &&cb) { return downcast<segam1audio_device &>(device).m_rxd_handler.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE16_MEMBER(m1_snd_mpcm_bnk1_w);
DECLARE_WRITE16_MEMBER(m1_snd_mpcm_bnk2_w);
@@ -60,6 +60,6 @@ private:
// device type definition
-extern const device_type SEGAM1AUDIO;
+DECLARE_DEVICE_TYPE(SEGAM1AUDIO, segam1audio_device)
-#endif /* __SEGAM1AUDIO_H__ */
+#endif // MAME_AUDIO_SEGAM1AUDIO_H