From 008ce703e7eb3dd5c097b0dd0a6a049a67340a6d Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 22 Jan 2022 15:16:36 -0800 Subject: [PATCH] Use inttypes.h to provide uintptr_t/intptr_t of machine dependent size for UNSIGNED/INT declarations --- inc/version.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/version.h b/inc/version.h index 112c57b..fafcafe 100644 --- a/inc/version.h +++ b/inc/version.h @@ -11,6 +11,7 @@ /* */ /************************************************************************/ +#include #include "maiko/platform.h" /************************************************************************/ @@ -187,8 +188,8 @@ error Must specify RELEASE to build Medley. /* Set up defaults */ #define UNALIGNED_FETCH_OK -typedef unsigned long UNSIGNED; -typedef long INT; +typedef uintptr_t UNSIGNED; +typedef intptr_t INT;