Thanks for the feedback! I was pretty busy with work this past week,
so it has taken me until now to update the patch.
-Sam
Soli Deo Gloria
From 931a146591ecc5e8bb45b5518a39e7fee92924f0 Mon Sep 17 00:00:00 2001
From: Sam Ellicott <[email protected]>
Date: Thu, 29 Jul 2021 22:36:53 -0400
Subject: [PATCH] tccdef.h additons for riscv64 newlib stdint

---
 include/tccdefs.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/tccdefs.h b/include/tccdefs.h
index ae0364e..0f470bb 100644
--- a/include/tccdefs.h
+++ b/include/tccdefs.h
@@ -122,6 +122,10 @@
     /* Linux */
 
 #endif
+    /* Some derived integer types needed to get stdint.h to compile correctly on some platforms */
+    #define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__
+    #define __INTPTR_TYPE__ __PTRDIFF_TYPE__
+    #define __INT32_TYPE__ int
 
 #if !defined _WIN32
     /* glibc defines */
-- 
2.32.0

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to