summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2020-05-22 14:07:38 +0200
committer Olivier Galibert <galibert@pobox.com>2020-05-22 14:09:07 +0200
commitc3a810d9576b06d1c65f251f13d51ba5e0a6d758 (patch)
treeb065cdb0889ec7b96ea428ecda6abe642e613870
parentd3bad75b926aa1ef1286b70cc9d46753e5f09455 (diff)
unsp: UINT_MAS needs climits [O. Galibert]
-rw-r--r--src/devices/cpu/unsp/unsp.cpp2
-rw-r--r--src/devices/cpu/unsp/unsp_fxxx.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/cpu/unsp/unsp.cpp b/src/devices/cpu/unsp/unsp.cpp
index c537fc70bc2..40adc713f01 100644
--- a/src/devices/cpu/unsp/unsp.cpp
+++ b/src/devices/cpu/unsp/unsp.cpp
@@ -24,6 +24,8 @@
#include "unspdasm.h"
+#include <climits>
+
DEFINE_DEVICE_TYPE(UNSP, unsp_device, "unsp", "SunPlus u'nSP (ISA 1.0)")
// 1.1 is just 1.0 with better CPI?
DEFINE_DEVICE_TYPE(UNSP_11, unsp_11_device, "unsp_11", "SunPlus u'nSP (ISA 1.1)")
diff --git a/src/devices/cpu/unsp/unsp_fxxx.cpp b/src/devices/cpu/unsp/unsp_fxxx.cpp
index fabec7a8d70..1b3de9cbfda 100644
--- a/src/devices/cpu/unsp/unsp_fxxx.cpp
+++ b/src/devices/cpu/unsp/unsp_fxxx.cpp
@@ -9,6 +9,8 @@
#include "unspdasm.h"
+#include <climits>
+
#define LOG_UNSP_MULS (1U << 1)
#define VERBOSE (0)