summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-02-11 18:23:11 +0100
committer Olivier Galibert <galibert@pobox.com>2017-02-11 18:31:20 +0100
commita2557f1b02478c5aaa1fdfa00204ac2e219319a1 (patch)
tree6f1693d59aa53be8c76ffe3bcf7fbc72f8546453 /src/frontend
parentc49b631153be9efc3a7e7b6172c17f5418843c0b (diff)
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/frontend')
-rw-r--r--src/frontend/mame/clifront.h1
-rw-r--r--src/frontend/mame/ui/menuitem.h1
-rw-r--r--src/frontend/mame/ui/slider.h1
-rw-r--r--src/frontend/mame/ui/text.cpp1
4 files changed, 1 insertions, 3 deletions
diff --git a/src/frontend/mame/clifront.h b/src/frontend/mame/clifront.h
index 544c2bbe15b..33dab55576c 100644
--- a/src/frontend/mame/clifront.h
+++ b/src/frontend/mame/clifront.h
@@ -12,7 +12,6 @@
#pragma once
-#include "emu.h"
#include "emuopts.h"
// don't include osd_interface in header files
diff --git a/src/frontend/mame/ui/menuitem.h b/src/frontend/mame/ui/menuitem.h
index b906b6e9a5a..0ba4629c93b 100644
--- a/src/frontend/mame/ui/menuitem.h
+++ b/src/frontend/mame/ui/menuitem.h
@@ -14,7 +14,6 @@
#ifndef MAME_FRONTEND_UI_MENUITEM_H
#define MAME_FRONTEND_UI_MENUITEM_H
-#include "emu.h"
namespace ui {
// special menu item for separators
diff --git a/src/frontend/mame/ui/slider.h b/src/frontend/mame/ui/slider.h
index 8bca79c752f..75f2bd3336e 100644
--- a/src/frontend/mame/ui/slider.h
+++ b/src/frontend/mame/ui/slider.h
@@ -16,7 +16,6 @@
#include <functional>
-#include "emu.h"
#include "sliderchangednotifier.h"
#define SLIDER_NOCHANGE 0x12345678
diff --git a/src/frontend/mame/ui/text.cpp b/src/frontend/mame/ui/text.cpp
index 457e9362f6e..f345fa7321d 100644
--- a/src/frontend/mame/ui/text.cpp
+++ b/src/frontend/mame/ui/text.cpp
@@ -8,6 +8,7 @@
*********************************************************************/
+#include "emu.h"
#include "text.h"
#include "rendfont.h"
#include "render.h"