summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/srmp2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/srmp2.h')
-rw-r--r--src/mame/includes/srmp2.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/mame/includes/srmp2.h b/src/mame/includes/srmp2.h
index 1ad9f968351..652a474989c 100644
--- a/src/mame/includes/srmp2.h
+++ b/src/mame/includes/srmp2.h
@@ -1,20 +1,25 @@
// license:BSD-3-Clause
// copyright-holders:Yochizo, Takahiro Nogi
+#ifndef MAME_INCLUDES_SRMP2_H
+#define MAME_INCLUDES_SRMP2_H
+
+#pragma once
+
#include "sound/msm5205.h"
#include "video/seta001.h"
#include "emupal.h"
-struct iox_t
-{
- int reset,ff_event,ff_1,protcheck[4],protlatch[4];
- uint8_t data;
- uint8_t mux;
- uint8_t ff;
-};
-
class srmp2_state : public driver_device
{
public:
+ struct iox_t
+ {
+ int reset,ff_event,ff_1,protcheck[4],protlatch[4];
+ uint8_t data;
+ uint8_t mux;
+ uint8_t ff;
+ };
+
srmp2_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
@@ -94,3 +99,5 @@ private:
void srmp3_io_map(address_map &map);
void srmp3_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_SRMP2_H