diff options
author | 2020-07-19 23:21:30 +1000 | |
---|---|---|
committer | 2020-07-19 23:21:30 +1000 | |
commit | e7a47217fa6ef30facfb97e78e911c1cce88973a (patch) | |
tree | 9acac0aaec43934918ca7c7e317f57e92ed75753 | |
parent | 01d5f7da9d4233afe0b54d6be1238ae29875d593 (diff) |
Restore some standard library #includes, add some things that were used but not #included, and clean up some #include guards.
-rw-r--r-- | src/devices/bus/acorn/bus.h | 2 | ||||
-rw-r--r-- | src/devices/bus/ieee488/grid2102.h | 2 | ||||
-rw-r--r-- | src/devices/bus/isa/isa.h | 2 | ||||
-rw-r--r-- | src/devices/bus/ti8x/graphlinkhle.h | 2 | ||||
-rw-r--r-- | src/devices/machine/pdp11.h | 18 | ||||
-rw-r--r-- | src/mame/drivers/iris3130.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/starrider.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/vgmplay.cpp | 7 | ||||
-rw-r--r-- | src/mame/includes/xbox_usb.h | 5 | ||||
-rw-r--r-- | src/mame/machine/esqpanel.cpp | 2 | ||||
-rw-r--r-- | src/mame/machine/esqpanel.h | 2 | ||||
-rw-r--r-- | src/mame/machine/esqvfd.h | 1 | ||||
-rw-r--r-- | src/mame/video/decbac06.h | 4 | ||||
-rw-r--r-- | src/mame/video/pin64.h | 11 | ||||
-rw-r--r-- | src/mame/video/segas24.cpp | 3 |
15 files changed, 51 insertions, 14 deletions
diff --git a/src/devices/bus/acorn/bus.h b/src/devices/bus/acorn/bus.h index b35b42f71d5..bfd9a980304 100644 --- a/src/devices/bus/acorn/bus.h +++ b/src/devices/bus/acorn/bus.h @@ -11,6 +11,8 @@ #pragma once +#include <forward_list> + //************************************************************************** // FORWARD DECLARATIONS diff --git a/src/devices/bus/ieee488/grid2102.h b/src/devices/bus/ieee488/grid2102.h index f87225c0812..4bf4403ddc8 100644 --- a/src/devices/bus/ieee488/grid2102.h +++ b/src/devices/bus/ieee488/grid2102.h @@ -14,6 +14,8 @@ #include "ieee488.h" #include <queue> +#include <vector> + //************************************************************************** // TYPE DEFINITIONS diff --git a/src/devices/bus/isa/isa.h b/src/devices/bus/isa/isa.h index a628ddc0b9b..ac84917dfed 100644 --- a/src/devices/bus/isa/isa.h +++ b/src/devices/bus/isa/isa.h @@ -67,6 +67,8 @@ #pragma once +#include <forward_list> + //************************************************************************** // TYPE DEFINITIONS diff --git a/src/devices/bus/ti8x/graphlinkhle.h b/src/devices/bus/ti8x/graphlinkhle.h index 8a07e0ddea0..310a4daf133 100644 --- a/src/devices/bus/ti8x/graphlinkhle.h +++ b/src/devices/bus/ti8x/graphlinkhle.h @@ -22,6 +22,8 @@ #include "diserial.h" +#include <memory> + namespace bus { namespace ti8x { diff --git a/src/devices/machine/pdp11.h b/src/devices/machine/pdp11.h index 98b7553a17c..ee052867645 100644 --- a/src/devices/machine/pdp11.h +++ b/src/devices/machine/pdp11.h @@ -6,18 +6,20 @@ * ****************************************************************************/ -#ifndef MAME_MACHINE_PDP11_H_ -#define MAME_MACHINE_PDP11_H_ +#ifndef MAME_MACHINE_PDP11_H +#define MAME_MACHINE_PDP11_H + +#pragma once // bit definitions for generic device CSR enum : uint16_t { - CSR_GO = 0000001, - CSR_IE = 0000100, // interrupt enable - CSR_DONE = 0000200, - CSR_BUSY = 0004000, - CSR_ERR = 0100000 + CSR_GO = 0000001, + CSR_IE = 0000100, // interrupt enable + CSR_DONE = 0000200, + CSR_BUSY = 0004000, + CSR_ERR = 0100000 }; @@ -32,4 +34,4 @@ enum : uint16_t do { *_storage = ((*_storage & ~_mask) | (_data & _mask)); } while (0) -#endif /* MAME_MACHINE_PDP11_H_ */ +#endif // MAME_MACHINE_PDP11_H diff --git a/src/mame/drivers/iris3130.cpp b/src/mame/drivers/iris3130.cpp index 0133e97db99..fdd4ce77e6e 100644 --- a/src/mame/drivers/iris3130.cpp +++ b/src/mame/drivers/iris3130.cpp @@ -43,6 +43,8 @@ #include "machine/mc146818.h" #include "machine/mc68681.h" +#include <vector> + #define LOG_RTC (1 << 0) #define LOG_INVALID_SEGMENT (1 << 1) #define LOG_OTHER (1 << 2) diff --git a/src/mame/drivers/starrider.cpp b/src/mame/drivers/starrider.cpp index 35082a77d77..5eaad7542ad 100644 --- a/src/mame/drivers/starrider.cpp +++ b/src/mame/drivers/starrider.cpp @@ -263,6 +263,8 @@ #include "emupal.h" #include <algorithm> +#include <iterator> +#include <memory> namespace { diff --git a/src/mame/drivers/vgmplay.cpp b/src/mame/drivers/vgmplay.cpp index bc4a1896202..c8bfcdc61c9 100644 --- a/src/mame/drivers/vgmplay.cpp +++ b/src/mame/drivers/vgmplay.cpp @@ -61,8 +61,13 @@ #include <zlib.h> -#include <utility> +#include <algorithm> +#include <iterator> +#include <list> +#include <memory> #include <queue> +#include <utility> +#include <vector> #define AS_IO16 1 diff --git a/src/mame/includes/xbox_usb.h b/src/mame/includes/xbox_usb.h index 11149047394..414d34c1d95 100644 --- a/src/mame/includes/xbox_usb.h +++ b/src/mame/includes/xbox_usb.h @@ -5,6 +5,11 @@ #pragma once +#include <forward_list> +#include <functional> +#include <memory> + + struct OHCIEndpointDescriptor { int mps; // MaximumPacketSize int f; // Format diff --git a/src/mame/machine/esqpanel.cpp b/src/mame/machine/esqpanel.cpp index 7516f78aa7c..c860d4a4d0d 100644 --- a/src/mame/machine/esqpanel.cpp +++ b/src/mame/machine/esqpanel.cpp @@ -12,12 +12,14 @@ // External panel support //************************************************************************** +#include <list> #include <mutex> #include <set> #include <sstream> #include <string> #include <thread> + namespace esqpanel { class external_panel; diff --git a/src/mame/machine/esqpanel.h b/src/mame/machine/esqpanel.h index 0ab65d1ac35..77ffc6f9daf 100644 --- a/src/mame/machine/esqpanel.h +++ b/src/mame/machine/esqpanel.h @@ -10,6 +10,8 @@ #include "diserial.h" +#include <vector> + //************************************************************************** // TYPE DEFINITIONS diff --git a/src/mame/machine/esqvfd.h b/src/mame/machine/esqvfd.h index 38ae82ff03f..3b0e008ed5e 100644 --- a/src/mame/machine/esqvfd.h +++ b/src/mame/machine/esqvfd.h @@ -3,6 +3,7 @@ #ifndef MAME_MACHINE_ESQVFD_H #define MAME_MACHINE_ESQVFD_H +#include <memory> #include <tuple> diff --git a/src/mame/video/decbac06.h b/src/mame/video/decbac06.h index a66b3fe9603..22814abd904 100644 --- a/src/mame/video/decbac06.h +++ b/src/mame/video/decbac06.h @@ -8,6 +8,10 @@ #include "screen.h" #include "tilemap.h" +#include <memory> +#include <utility> + + typedef device_delegate<void (tile_data &tileinfo, u32 &tile, u32 &colour, u32 &flags)> decbac06_tile_cb_delegate; class deco_bac06_device : public device_t diff --git a/src/mame/video/pin64.h b/src/mame/video/pin64.h index 5a0d73e6784..31b836f7ed9 100644 --- a/src/mame/video/pin64.h +++ b/src/mame/video/pin64.h @@ -1,11 +1,14 @@ // license:BSD-3-Clause // copyright-holders:Ryan Holtz -#pragma once +#ifndef MAME_VIDEO_PIN64_H +#define MAME_VIDEO_PIN64_H -#ifndef PIN64_H -#define PIN64_H +#pragma once #include <cstdio> +#include <map> +#include <vector> + #define PIN64_ENABLE_CAPTURE (0) @@ -174,4 +177,4 @@ private: static const uint8_t CAP_ID[8]; }; -#endif // PIN64_H +#endif // MAME_VIDEO_PIN64_H diff --git a/src/mame/video/segas24.cpp b/src/mame/video/segas24.cpp index 0f11cb78058..c341a354f00 100644 --- a/src/mame/video/segas24.cpp +++ b/src/mame/video/segas24.cpp @@ -6,9 +6,10 @@ */ #include "emu.h" -#include "video/segaic24.h" #include "includes/segas24.h" + #include <algorithm> +#include <vector> namespace { |