From a2557f1b02478c5aaa1fdfa00204ac2e219319a1 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sat, 11 Feb 2017 18:23:11 +0100 Subject: 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. --- src/devices/bus/newbrain/eim.cpp | 1 + src/devices/bus/newbrain/eim.h | 1 - src/devices/bus/newbrain/exp.cpp | 1 + src/devices/bus/newbrain/exp.h | 1 - src/devices/bus/newbrain/fdc.cpp | 1 + src/devices/bus/newbrain/fdc.h | 1 - 6 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/bus/newbrain') diff --git a/src/devices/bus/newbrain/eim.cpp b/src/devices/bus/newbrain/eim.cpp index 7be6e38d6cf..eae75ed16e3 100644 --- a/src/devices/bus/newbrain/eim.cpp +++ b/src/devices/bus/newbrain/eim.cpp @@ -14,6 +14,7 @@ */ +#include "emu.h" #include "eim.h" diff --git a/src/devices/bus/newbrain/eim.h b/src/devices/bus/newbrain/eim.h index 824de3daf69..58024f60cf4 100644 --- a/src/devices/bus/newbrain/eim.h +++ b/src/devices/bus/newbrain/eim.h @@ -11,7 +11,6 @@ #ifndef __NEWBRAIN_EIM__ #define __NEWBRAIN_EIM__ -#include "emu.h" #include "exp.h" #include "bus/rs232/rs232.h" #include "machine/6850acia.h" diff --git a/src/devices/bus/newbrain/exp.cpp b/src/devices/bus/newbrain/exp.cpp index 85684823493..e83dd50266f 100644 --- a/src/devices/bus/newbrain/exp.cpp +++ b/src/devices/bus/newbrain/exp.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "exp.h" diff --git a/src/devices/bus/newbrain/exp.h b/src/devices/bus/newbrain/exp.h index a81194945df..0c07190bdf0 100644 --- a/src/devices/bus/newbrain/exp.h +++ b/src/devices/bus/newbrain/exp.h @@ -39,7 +39,6 @@ #ifndef __NEWBRAIN_EXPANSION_SLOT__ #define __NEWBRAIN_EXPANSION_SLOT__ -#include "emu.h" diff --git a/src/devices/bus/newbrain/fdc.cpp b/src/devices/bus/newbrain/fdc.cpp index f8965589fb5..aa422f999d5 100644 --- a/src/devices/bus/newbrain/fdc.cpp +++ b/src/devices/bus/newbrain/fdc.cpp @@ -15,6 +15,7 @@ */ +#include "emu.h" #include "fdc.h" diff --git a/src/devices/bus/newbrain/fdc.h b/src/devices/bus/newbrain/fdc.h index 2d2d2bc8576..b34e88441ee 100644 --- a/src/devices/bus/newbrain/fdc.h +++ b/src/devices/bus/newbrain/fdc.h @@ -11,7 +11,6 @@ #ifndef __NEWBRAIN_FDC__ #define __NEWBRAIN_FDC__ -#include "emu.h" #include "exp.h" #include "cpu/z80/z80.h" #include "machine/upd765.h" -- cgit v1.2.3-70-g09d2