summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/hmcs40
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2017-02-11 18:23:11 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2017-02-11 18:31:20 +0100
commita2557f1b02478c5aaa1fdfa00204ac2e219319a1 (patch) (github)
tree6f1693d59aa53be8c76ffe3bcf7fbc72f8546453 /src/devices/cpu/hmcs40
parentc49b631153be9efc3a7e7b6172c17f5418843c0b (diff)
downloadmame-a2557f1b02478c5aaa1fdfa00204ac2e219319a1.tar.bz2
mame-a2557f1b02478c5aaa1fdfa00204ac2e219319a1.zip
Remove emu.h from headers (nw)
Per Vas' request. If the compile fails for you (i'm thinking osx and windows native debuggers here in particular), add '#include "emu.h"' as first include of the cpp files that fail. Due to our use of precompilation and forced inclusion, emu.h must be included as the very first non-comment thing we do if we want to be sure msvc compiles are identical to gcc/clang ones. Doing it directly instead of through an include increases the correctness probability by a magnitude.
Diffstat (limited to 'src/devices/cpu/hmcs40')
-rw-r--r--src/devices/cpu/hmcs40/hmcs40.cpp1
-rw-r--r--src/devices/cpu/hmcs40/hmcs40.h1
-rw-r--r--src/devices/cpu/hmcs40/hmcs40op.cpp1
3 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/hmcs40/hmcs40.cpp b/src/devices/cpu/hmcs40/hmcs40.cpp
index fcc61b40fe7..0023956f8d4 100644
--- a/src/devices/cpu/hmcs40/hmcs40.cpp
+++ b/src/devices/cpu/hmcs40/hmcs40.cpp
@@ -14,6 +14,7 @@
#define IS_PMOS 0
#define IS_CMOS ~0
+#include "emu.h"
#include "hmcs40.h"
#include "debugger.h"
diff --git a/src/devices/cpu/hmcs40/hmcs40.h b/src/devices/cpu/hmcs40/hmcs40.h
index 1eaed0bab37..9bd2e3f82a5 100644
--- a/src/devices/cpu/hmcs40/hmcs40.h
+++ b/src/devices/cpu/hmcs40/hmcs40.h
@@ -9,7 +9,6 @@
#ifndef _HMCS40_H_
#define _HMCS40_H_
-#include "emu.h"
// I/O ports setup
diff --git a/src/devices/cpu/hmcs40/hmcs40op.cpp b/src/devices/cpu/hmcs40/hmcs40op.cpp
index da89ff44fe7..e554ec8ac45 100644
--- a/src/devices/cpu/hmcs40/hmcs40op.cpp
+++ b/src/devices/cpu/hmcs40/hmcs40op.cpp
@@ -3,6 +3,7 @@
// HMCS40 opcode handlers
+#include "emu.h"
#include "hmcs40.h"