summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Frank Palazzolo <frank@avoidspikes.com>2020-06-26 00:44:49 -0400
committer Frank Palazzolo <frank@avoidspikes.com>2020-06-26 00:44:49 -0400
commit7044bdbae6b1bca7395e27b35ac15f732532ad6f (patch)
treea57cfd2ca8b775247751fbbbe31546293eb1bd77
parent3e4e28ff0a5f7c265bd57dc309eb0d9fc0b0c60d (diff)
Fix vs2019 build
-rw-r--r--src/devices/bus/qbus/pc11.cpp1
-rw-r--r--src/devices/machine/iwm.cpp6
-rw-r--r--src/devices/machine/netlist.cpp2
-rw-r--r--src/devices/machine/spg290_cdservo.cpp2
4 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/bus/qbus/pc11.cpp b/src/devices/bus/qbus/pc11.cpp
index 395a0235388..26647204802 100644
--- a/src/devices/bus/qbus/pc11.cpp
+++ b/src/devices/bus/qbus/pc11.cpp
@@ -6,6 +6,7 @@
***************************************************************************/
+#include "emu.h"
#include "pc11.h"
diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp
index 3d1ff6f9b21..9c5002672e2 100644
--- a/src/devices/machine/iwm.cpp
+++ b/src/devices/machine/iwm.cpp
@@ -17,8 +17,10 @@ iwm_device::iwm_device(const machine_config &mconfig, const char *tag, device_t
applefdintf_device(mconfig, IWM, tag, owner, clock),
m_q3_clock(q3_clock)
{
- m_q3_fclk_ratio = double(clock)/double(q3_clock); // ~0.25
- m_fclk_q3_ratio = double(q3_clock)/double(clock); // ~4
+ if (q3_clock != 0)
+ m_q3_fclk_ratio = double(clock)/double(q3_clock); // ~0.25
+ if (clock != 0)
+ m_fclk_q3_ratio = double(q3_clock)/double(clock); // ~4
}
u64 iwm_device::q3_to_fclk(u64 cycles) const
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index 38cda91fdfa..4422481dcd1 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -63,7 +63,7 @@ DEFINE_DEVICE_TYPE(NETLIST_STREAM_OUTPUT, netlist_mame_stream_output_device, "nl
// Special netlist extension devices ....
// ----------------------------------------------------------------------------------------
-extern plib::dynlib_static_sym nl_static_solver_syms[];
+extern const plib::dynlib_static_sym nl_static_solver_syms[];
static netlist::netlist_time_ext nltime_from_attotime(attotime t)
{
diff --git a/src/devices/machine/spg290_cdservo.cpp b/src/devices/machine/spg290_cdservo.cpp
index 53415f093b5..651d5e16818 100644
--- a/src/devices/machine/spg290_cdservo.cpp
+++ b/src/devices/machine/spg290_cdservo.cpp
@@ -145,7 +145,7 @@ void spg290_cdservo_device::device_timer(emu_timer &timer, device_timer_id id, i
m_irq_cb(ASSERT_LINE);
}
- if (m_cur_sector < m_seek_lba + SPG290_LEADIN_LEN and m_cur_sector < m_tot_sectors)
+ if ((m_cur_sector < m_seek_lba + SPG290_LEADIN_LEN) && (m_cur_sector < m_tot_sectors))
m_cur_sector++;
}