diff options
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 |
commit | a2557f1b02478c5aaa1fdfa00204ac2e219319a1 (patch) | |
tree | 6f1693d59aa53be8c76ffe3bcf7fbc72f8546453 /src/devices/video | |
parent | c49b631153be9efc3a7e7b6172c17f5418843c0b (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/devices/video')
59 files changed, 21 insertions, 38 deletions
diff --git a/src/devices/video/cdp1861.h b/src/devices/video/cdp1861.h index ba85da6311c..b72b47a3042 100644 --- a/src/devices/video/cdp1861.h +++ b/src/devices/video/cdp1861.h @@ -26,7 +26,6 @@ #ifndef __CDP1861__ #define __CDP1861__ -#include "emu.h" diff --git a/src/devices/video/cdp1862.cpp b/src/devices/video/cdp1862.cpp index ed471a4da8e..ab79e3998dd 100644 --- a/src/devices/video/cdp1862.cpp +++ b/src/devices/video/cdp1862.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "cdp1862.h" diff --git a/src/devices/video/cdp1862.h b/src/devices/video/cdp1862.h index 11f1ed35d20..c93cf05c2c5 100644 --- a/src/devices/video/cdp1862.h +++ b/src/devices/video/cdp1862.h @@ -26,7 +26,6 @@ #ifndef __CDP1862__ #define __CDP1862__ -#include "emu.h" diff --git a/src/devices/video/clgd542x.cpp b/src/devices/video/clgd542x.cpp index 163c80ccccf..f03e418e8e7 100644 --- a/src/devices/video/clgd542x.cpp +++ b/src/devices/video/clgd542x.cpp @@ -6,6 +6,7 @@ */ +#include "emu.h" #include "clgd542x.h" #define LOG_REG 0 diff --git a/src/devices/video/clgd542x.h b/src/devices/video/clgd542x.h index 685233773b7..1579c2a0c0b 100644 --- a/src/devices/video/clgd542x.h +++ b/src/devices/video/clgd542x.h @@ -6,7 +6,6 @@ */ -#include "emu.h" #include "video/pc_vga.h" MACHINE_CONFIG_EXTERN( pcvideo_cirrus_gd5428 ); diff --git a/src/devices/video/crt9007.h b/src/devices/video/crt9007.h index 67d43d6ce40..dbfbc7986fb 100644 --- a/src/devices/video/crt9007.h +++ b/src/devices/video/crt9007.h @@ -34,7 +34,6 @@ #ifndef __CRT9007__ #define __CRT9007__ -#include "emu.h" diff --git a/src/devices/video/crt9021.cpp b/src/devices/video/crt9021.cpp index 66fc916aeaa..17f379d560c 100644 --- a/src/devices/video/crt9021.cpp +++ b/src/devices/video/crt9021.cpp @@ -33,6 +33,7 @@ */ +#include "emu.h" #include "crt9021.h" diff --git a/src/devices/video/crt9021.h b/src/devices/video/crt9021.h index 049c96013b5..36639d3b498 100644 --- a/src/devices/video/crt9021.h +++ b/src/devices/video/crt9021.h @@ -28,7 +28,6 @@ #ifndef __CRT9021__ #define __CRT9021__ -#include "emu.h" diff --git a/src/devices/video/crt9212.cpp b/src/devices/video/crt9212.cpp index 79bed06d43f..09c8cbb68aa 100644 --- a/src/devices/video/crt9212.cpp +++ b/src/devices/video/crt9212.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "crt9212.h" diff --git a/src/devices/video/crt9212.h b/src/devices/video/crt9212.h index 4972c607e20..699594b98e0 100644 --- a/src/devices/video/crt9212.h +++ b/src/devices/video/crt9212.h @@ -28,7 +28,6 @@ #ifndef __CRT9212__ #define __CRT9212__ -#include "emu.h" diff --git a/src/devices/video/crtc_ega.h b/src/devices/video/crtc_ega.h index f65e949d0f6..587cb7e90b9 100644 --- a/src/devices/video/crtc_ega.h +++ b/src/devices/video/crtc_ega.h @@ -9,7 +9,6 @@ #ifndef __CRTC_EGA__ #define __CRTC_EGA__ -#include "emu.h" /* callback definitions */ typedef device_delegate<void (bitmap_ind16 &bitmap, const rectangle &cliprect)> crtc_ega_begin_update_delegate; diff --git a/src/devices/video/dm9368.cpp b/src/devices/video/dm9368.cpp index 2b6502782bd..4b27a12da7d 100644 --- a/src/devices/video/dm9368.cpp +++ b/src/devices/video/dm9368.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "dm9368.h" diff --git a/src/devices/video/dm9368.h b/src/devices/video/dm9368.h index 35364054124..2c6c1ca908c 100644 --- a/src/devices/video/dm9368.h +++ b/src/devices/video/dm9368.h @@ -22,7 +22,6 @@ #ifndef __DM9368__ #define __DM9368__ -#include "emu.h" diff --git a/src/devices/video/ef9340_1.cpp b/src/devices/video/ef9340_1.cpp index 204646654e4..c252e85aa46 100644 --- a/src/devices/video/ef9340_1.cpp +++ b/src/devices/video/ef9340_1.cpp @@ -9,6 +9,7 @@ ***************************************************************************/ +#include "emu.h" #include "ef9340_1.h" #include "ef9341_chargen.h" diff --git a/src/devices/video/ef9340_1.h b/src/devices/video/ef9340_1.h index 9e0a4dc69b3..6a7246ae42a 100644 --- a/src/devices/video/ef9340_1.h +++ b/src/devices/video/ef9340_1.h @@ -14,7 +14,6 @@ #ifndef __EF9340_1_H__ #define __EF9340_1_H__ -#include "emu.h" #define MCFG_EF9340_1_ADD(_tag, _clock, _screen_tag) \ diff --git a/src/devices/video/ef9369.cpp b/src/devices/video/ef9369.cpp index 7d97888b845..f6012ffe0f4 100644 --- a/src/devices/video/ef9369.cpp +++ b/src/devices/video/ef9369.cpp @@ -6,6 +6,7 @@ ***************************************************************************/ +#include "emu.h" #include <algorithm> #include "ef9369.h" diff --git a/src/devices/video/ef9369.h b/src/devices/video/ef9369.h index 3689e8c6f00..63b28d2cac7 100644 --- a/src/devices/video/ef9369.h +++ b/src/devices/video/ef9369.h @@ -29,7 +29,6 @@ #ifndef __EF9369_H__ #define __EF9369_H__ -#include "emu.h" //************************************************************************** diff --git a/src/devices/video/fixfreq.h b/src/devices/video/fixfreq.h index fa39a0b9de6..ed009275cae 100644 --- a/src/devices/video/fixfreq.h +++ b/src/devices/video/fixfreq.h @@ -14,7 +14,6 @@ #ifndef FIXFREQ_H #define FIXFREQ_H -#include "emu.h" #include "machine/netlist.h" #define FIXFREQ_INTERFACE(name) \ diff --git a/src/devices/video/gb_lcd.h b/src/devices/video/gb_lcd.h index 351178bf006..6e3587439d9 100644 --- a/src/devices/video/gb_lcd.h +++ b/src/devices/video/gb_lcd.h @@ -9,7 +9,6 @@ #ifndef __GB_LCD_H__ #define __GB_LCD_H__ -#include "emu.h" #include "cpu/lr35902/lr35902.h" diff --git a/src/devices/video/gba_lcd.h b/src/devices/video/gba_lcd.h index 9632cc4d25c..3df855b4535 100644 --- a/src/devices/video/gba_lcd.h +++ b/src/devices/video/gba_lcd.h @@ -15,7 +15,6 @@ #ifndef __GBA_LCD_H__ #define __GBA_LCD_H__ -#include "emu.h" diff --git a/src/devices/video/gf7600gs.cpp b/src/devices/video/gf7600gs.cpp index 8c79865d490..dfb16de1a1e 100644 --- a/src/devices/video/gf7600gs.cpp +++ b/src/devices/video/gf7600gs.cpp @@ -1,5 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Olivier Galibert +#include "emu.h" #include "gf7600gs.h" const device_type GEFORCE_7600GS = &device_creator<geforce_7600gs_device>; diff --git a/src/devices/video/hd44102.h b/src/devices/video/hd44102.h index 848515c2274..7aa19f2a8ea 100644 --- a/src/devices/video/hd44102.h +++ b/src/devices/video/hd44102.h @@ -11,7 +11,6 @@ #ifndef __HD44102__ #define __HD44102__ -#include "emu.h" diff --git a/src/devices/video/hd61830.cpp b/src/devices/video/hd61830.cpp index 51a5ae3ab35..de9c58b0928 100644 --- a/src/devices/video/hd61830.cpp +++ b/src/devices/video/hd61830.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "hd61830.h" diff --git a/src/devices/video/hd61830.h b/src/devices/video/hd61830.h index 443aede5b9d..05f2ac1b3a2 100644 --- a/src/devices/video/hd61830.h +++ b/src/devices/video/hd61830.h @@ -11,7 +11,6 @@ #ifndef __HD61830__ #define __HD61830__ -#include "emu.h" diff --git a/src/devices/video/hd63484.h b/src/devices/video/hd63484.h index b30df47ba3c..83e2bbcb232 100644 --- a/src/devices/video/hd63484.h +++ b/src/devices/video/hd63484.h @@ -13,7 +13,6 @@ #define __HD63484__ -#include "emu.h" typedef device_delegate<void (bitmap_ind16 &bitmap, const rectangle &cliprect, int y, int x, uint16_t data)> hd63484_display_delegate; diff --git a/src/devices/video/hlcd0515.cpp b/src/devices/video/hlcd0515.cpp index eb9f6271c07..c0697993466 100644 --- a/src/devices/video/hlcd0515.cpp +++ b/src/devices/video/hlcd0515.cpp @@ -13,6 +13,7 @@ */ +#include "emu.h" #include "video/hlcd0515.h" diff --git a/src/devices/video/hlcd0515.h b/src/devices/video/hlcd0515.h index a09af404b55..c551ef2e1fc 100644 --- a/src/devices/video/hlcd0515.h +++ b/src/devices/video/hlcd0515.h @@ -9,7 +9,6 @@ #ifndef _HLCD0515_H_ #define _HLCD0515_H_ -#include "emu.h" // COL/ROW pins (offset for ROW) diff --git a/src/devices/video/huc6202.h b/src/devices/video/huc6202.h index 57d28adae25..5ad529a3e35 100644 --- a/src/devices/video/huc6202.h +++ b/src/devices/video/huc6202.h @@ -9,7 +9,6 @@ #ifndef __HUC6202_H_ #define __HUC6202_H_ -#include "emu.h" #define MCFG_HUC6202_NEXT_PIXEL_0_CB(_devcb) \ diff --git a/src/devices/video/huc6260.h b/src/devices/video/huc6260.h index 7c1cb117f39..f90a7946e20 100644 --- a/src/devices/video/huc6260.h +++ b/src/devices/video/huc6260.h @@ -10,7 +10,6 @@ #ifndef __HUC6260_H_ #define __HUC6260_H_ -#include "emu.h" #define HUC6260_PALETTE_SIZE 1024 diff --git a/src/devices/video/huc6261.h b/src/devices/video/huc6261.h index f1101397744..1e49f35dd9c 100644 --- a/src/devices/video/huc6261.h +++ b/src/devices/video/huc6261.h @@ -10,7 +10,6 @@ #ifndef __HUC6261_H_ #define __HUC6261_H_ -#include "emu.h" #include "video/huc6270.h" #include "video/huc6272.h" diff --git a/src/devices/video/huc6270.h b/src/devices/video/huc6270.h index fb80aaa08a4..a66dc703a34 100644 --- a/src/devices/video/huc6270.h +++ b/src/devices/video/huc6270.h @@ -9,7 +9,6 @@ #ifndef __HUC6270_H_ #define __HUC6270_H_ -#include "emu.h" #define MCFG_HUC6270_VRAM_SIZE(_size) \ huc6270_device::set_vram_size(*device, _size); diff --git a/src/devices/video/i8244.h b/src/devices/video/i8244.h index 4827a3c278e..c3e3dcfd5ee 100644 --- a/src/devices/video/i8244.h +++ b/src/devices/video/i8244.h @@ -13,7 +13,6 @@ #ifndef __I8244_H__ #define __I8244_H__ -#include "emu.h" /*************************************************************************** diff --git a/src/devices/video/i82730.cpp b/src/devices/video/i82730.cpp index bad69058f31..1e2db782a01 100644 --- a/src/devices/video/i82730.cpp +++ b/src/devices/video/i82730.cpp @@ -8,6 +8,7 @@ ***************************************************************************/ +#include "emu.h" #include "i82730.h" diff --git a/src/devices/video/i82730.h b/src/devices/video/i82730.h index 3b78eb64ac4..2e459803d93 100644 --- a/src/devices/video/i82730.h +++ b/src/devices/video/i82730.h @@ -13,7 +13,6 @@ #ifndef __I82730_H__ #define __I82730_H__ -#include "emu.h" //************************************************************************** diff --git a/src/devices/video/i8275.cpp b/src/devices/video/i8275.cpp index dfdb5982318..0836fe74ea7 100644 --- a/src/devices/video/i8275.cpp +++ b/src/devices/video/i8275.cpp @@ -14,6 +14,7 @@ */ +#include "emu.h" #include "i8275.h" diff --git a/src/devices/video/i8275.h b/src/devices/video/i8275.h index 859647ef725..affc47e1f64 100644 --- a/src/devices/video/i8275.h +++ b/src/devices/video/i8275.h @@ -34,7 +34,6 @@ #ifndef __I8275x__ #define __I8275x__ -#include "emu.h" diff --git a/src/devices/video/mc6845.h b/src/devices/video/mc6845.h index ddae73483b3..52fbad4711a 100644 --- a/src/devices/video/mc6845.h +++ b/src/devices/video/mc6845.h @@ -9,7 +9,6 @@ #ifndef __MC6845__ #define __MC6845__ -#include "emu.h" #define MCFG_MC6845_ADD(_tag, _variant, _screen_tag, _clock) \ diff --git a/src/devices/video/mga2064w.cpp b/src/devices/video/mga2064w.cpp index e3d054f8b75..50e1709594e 100644 --- a/src/devices/video/mga2064w.cpp +++ b/src/devices/video/mga2064w.cpp @@ -1,5 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Olivier Galibert +#include "emu.h" #include "mga2064w.h" const device_type MGA2064W = &device_creator<mga2064w_device>; diff --git a/src/devices/video/mos6566.cpp b/src/devices/video/mos6566.cpp index ab34a1894d6..abfbaf808e3 100644 --- a/src/devices/video/mos6566.cpp +++ b/src/devices/video/mos6566.cpp @@ -18,6 +18,7 @@ */ +#include "emu.h" #include "mos6566.h" diff --git a/src/devices/video/mos6566.h b/src/devices/video/mos6566.h index 2b8c5ecd820..eedd627d6f9 100644 --- a/src/devices/video/mos6566.h +++ b/src/devices/video/mos6566.h @@ -82,7 +82,6 @@ #ifndef __MOS6566__ #define __MOS6566__ -#include "emu.h" diff --git a/src/devices/video/msm6255.cpp b/src/devices/video/msm6255.cpp index 50f0e1da71f..10a5eb6e368 100644 --- a/src/devices/video/msm6255.cpp +++ b/src/devices/video/msm6255.cpp @@ -6,6 +6,7 @@ **********************************************************************/ +#include "emu.h" #include "msm6255.h" diff --git a/src/devices/video/msm6255.h b/src/devices/video/msm6255.h index b4b73d633a4..45e43d24b20 100644 --- a/src/devices/video/msm6255.h +++ b/src/devices/video/msm6255.h @@ -11,7 +11,6 @@ #ifndef __MSM6255__ #define __MSM6255__ -#include "emu.h" diff --git a/src/devices/video/psx.h b/src/devices/video/psx.h index e798122c697..d3b56642222 100644 --- a/src/devices/video/psx.h +++ b/src/devices/video/psx.h @@ -12,7 +12,6 @@ #ifndef __PSXGPU_H__ #define __PSXGPU_H__ -#include "emu.h" #define MCFG_PSX_GPU_VBLANK_HANDLER(_devcb) \ devcb = &psxgpu_device::set_vblank_handler(*device, DEVCB_##_devcb); diff --git a/src/devices/video/ramdac.h b/src/devices/video/ramdac.h index 08bfa2cab92..9ae4ce030d2 100644 --- a/src/devices/video/ramdac.h +++ b/src/devices/video/ramdac.h @@ -11,7 +11,6 @@ #ifndef __ramdacDEV_H__ #define __ramdacDEV_H__ -#include "emu.h" //************************************************************************** diff --git a/src/devices/video/saa5050.cpp b/src/devices/video/saa5050.cpp index 5953e1a0d24..e4eb44768a3 100644 --- a/src/devices/video/saa5050.cpp +++ b/src/devices/video/saa5050.cpp @@ -18,6 +18,7 @@ */ +#include "emu.h" #include "saa5050.h" diff --git a/src/devices/video/saa5050.h b/src/devices/video/saa5050.h index aa854dbee18..c88d840227c 100644 --- a/src/devices/video/saa5050.h +++ b/src/devices/video/saa5050.h @@ -28,7 +28,6 @@ #ifndef __SAA5050__ #define __SAA5050__ -#include "emu.h" diff --git a/src/devices/video/scn2674.cpp b/src/devices/video/scn2674.cpp index 40aa2fc4c31..970a3a4e7f4 100644 --- a/src/devices/video/scn2674.cpp +++ b/src/devices/video/scn2674.cpp @@ -4,6 +4,7 @@ SCN2674 - Advanced Video Display Controller (AVDC) (Video Chip) */ +#include "emu.h" #include "scn2674.h" #define S674VERBOSE 0 diff --git a/src/devices/video/scn2674.h b/src/devices/video/scn2674.h index 9d2617050fe..2353a84cbcb 100644 --- a/src/devices/video/scn2674.h +++ b/src/devices/video/scn2674.h @@ -3,7 +3,6 @@ #ifndef SCN2674_H #define SCN2674_H -#include "emu.h" #define MCFG_SCN2674_VIDEO_ADD(_tag, _clock, _irq) \ MCFG_DEVICE_ADD(_tag, SCN2674_VIDEO, _clock) \ diff --git a/src/devices/video/sed1330.h b/src/devices/video/sed1330.h index 5f4ceba6a0c..a71e35e0e83 100644 --- a/src/devices/video/sed1330.h +++ b/src/devices/video/sed1330.h @@ -11,7 +11,6 @@ #ifndef __SED1330__ #define __SED1330__ -#include "emu.h" diff --git a/src/devices/video/tea1002.cpp b/src/devices/video/tea1002.cpp index b42d7d7a8f3..f41520ddd17 100644 --- a/src/devices/video/tea1002.cpp +++ b/src/devices/video/tea1002.cpp @@ -8,6 +8,7 @@ ***************************************************************************/ +#include "emu.h" #include "tea1002.h" diff --git a/src/devices/video/tea1002.h b/src/devices/video/tea1002.h index d5107beec93..d0f4b38f876 100644 --- a/src/devices/video/tea1002.h +++ b/src/devices/video/tea1002.h @@ -24,7 +24,6 @@ #ifndef __TEA1002_H__ #define __TEA1002_H__ -#include "emu.h" //************************************************************************** diff --git a/src/devices/video/tms9928a.h b/src/devices/video/tms9928a.h index 37103e47c41..36dc2655928 100644 --- a/src/devices/video/tms9928a.h +++ b/src/devices/video/tms9928a.h @@ -26,7 +26,6 @@ #ifndef __TMS9928A_H__ #define __TMS9928A_H__ -#include "emu.h" #define TMS9928A_PALETTE_SIZE 16 diff --git a/src/devices/video/upd3301.cpp b/src/devices/video/upd3301.cpp index 46a544839b8..e84ad8436e6 100644 --- a/src/devices/video/upd3301.cpp +++ b/src/devices/video/upd3301.cpp @@ -19,6 +19,7 @@ */ +#include "emu.h" #include "upd3301.h" diff --git a/src/devices/video/upd3301.h b/src/devices/video/upd3301.h index ddb08116ae4..5d1c03c7ed1 100644 --- a/src/devices/video/upd3301.h +++ b/src/devices/video/upd3301.h @@ -34,7 +34,6 @@ #ifndef __UPD3301__ #define __UPD3301__ -#include "emu.h" diff --git a/src/devices/video/upd7220.h b/src/devices/video/upd7220.h index 97251e4f0f9..e55a1892241 100644 --- a/src/devices/video/upd7220.h +++ b/src/devices/video/upd7220.h @@ -34,7 +34,6 @@ #ifndef __UPD7220__ #define __UPD7220__ -#include "emu.h" diff --git a/src/devices/video/upd7227.h b/src/devices/video/upd7227.h index 2b39e1c0d22..c38b2fa10e2 100644 --- a/src/devices/video/upd7227.h +++ b/src/devices/video/upd7227.h @@ -11,7 +11,6 @@ #ifndef __UPD7227__ #define __UPD7227__ -#include "emu.h" diff --git a/src/devices/video/voodoo_pci.cpp b/src/devices/video/voodoo_pci.cpp index 0fe6811eefa..9221b051b16 100644 --- a/src/devices/video/voodoo_pci.cpp +++ b/src/devices/video/voodoo_pci.cpp @@ -1,5 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Ted Green +#include "emu.h" #include "voodoo_pci.h" int voodoo_pci_device::m_type = 0; diff --git a/src/devices/video/zeus2.cpp b/src/devices/video/zeus2.cpp index f77412c5846..f40789b86ff 100644 --- a/src/devices/video/zeus2.cpp +++ b/src/devices/video/zeus2.cpp @@ -5,6 +5,7 @@ Midway Zeus2 Video **************************************************************************/ +#include "emu.h" #include "zeus2.h" #define LOG_REGS 1 diff --git a/src/devices/video/zeus2.h b/src/devices/video/zeus2.h index 35bb4f02f21..ed2ae71ba4d 100644 --- a/src/devices/video/zeus2.h +++ b/src/devices/video/zeus2.h @@ -8,7 +8,6 @@ #ifndef __ZEUS2_H__ #define __ZEUS2_H__ -#include "emu.h" #include "video/poly.h" #include "video/rgbutil.h" #include "cpu/tms32031/tms32031.h" |