summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/m2comm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/m2comm.h')
-rw-r--r--src/mame/machine/m2comm.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/machine/m2comm.h b/src/mame/machine/m2comm.h
index 5145b59d54b..2667f277340 100644
--- a/src/mame/machine/m2comm.h
+++ b/src/mame/machine/m2comm.h
@@ -1,11 +1,11 @@
// license:BSD-3-Clause
// copyright-holders:Ariane Fugmann
-#pragma once
+#ifndef MAME_MACHINE_M2COMM_H
+#define MAME_MACHINE_M2COMM_H
-#ifndef __M2COMM_H__
-#define __M2COMM_H__
+#pragma once
-#define __M2COMM_SIMULATION__
+#define M2COMM_SIMULATION
#define MCFG_M2COMM_ADD(_tag ) \
@@ -64,7 +64,7 @@ private:
char m_remotehost[256];
uint8_t m_buffer[0x4000];
-#ifdef __M2COMM_SIMULATION__
+#ifdef M2COMM_SIMULATION
uint8_t m_linkenable;
uint16_t m_linktimer;
uint8_t m_linkalive;
@@ -76,6 +76,6 @@ private:
};
// device type definition
-extern const device_type M2COMM;
+DECLARE_DEVICE_TYPE(M2COMM, m2comm_device)
-#endif /* __M2COMM_H__ */
+#endif // MAME_MACHINE_M2COMM_H