summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mathbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mathbox.h')
-rw-r--r--src/mame/machine/mathbox.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/machine/mathbox.h b/src/mame/machine/mathbox.h
index a4492309b5c..035093b0c4b 100644
--- a/src/mame/machine/mathbox.h
+++ b/src/mame/machine/mathbox.h
@@ -6,6 +6,10 @@
* Copyright Eric Smith
*
*/
+#ifndef MAME_MACHINE_MATHBOX_H
+#define MAME_MACHINE_MATHBOX_H
+
+#pragma once
/***************************************************************************
DEVICE CONFIGURATION MACROS
@@ -41,4 +45,6 @@ protected:
int16_t m_result;
};
-extern const device_type MATHBOX;
+DECLARE_DEVICE_TYPE(MATHBOX, mathbox_device)
+
+#endif // MAME_MACHINE_MATHBOX_H