~ chicken-core (master) 99dec73cd47c204273cada8a250f758eaa6a1bad
commit 99dec73cd47c204273cada8a250f758eaa6a1bad
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Sat May 9 17:55:17 2026 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Sat May 9 17:55:17 2026 +0200
add missing regparm declarations to fix compiler errors in x86/32 bits
(thanks to "nmeum")
diff --git a/runtime.c b/runtime.c
index 7f038935..bba85e50 100644
--- a/runtime.c
+++ b/runtime.c
@@ -13694,7 +13694,7 @@ C_char *C_getenventry(int i)
#endif
}
-C_long C_current_jiffy(void) {
+C_regparm C_long C_current_jiffy(void) {
#if defined(_WIN32) && !defined(__CYGWIN__)
LARGE_INTEGER ticks;
QueryPerformanceCounter(&ticks);
@@ -13706,7 +13706,7 @@ C_long C_current_jiffy(void) {
#endif
}
-C_long C_jiffies_per_second(void) {
+C_regparm C_long C_jiffies_per_second(void) {
#if defined(_WIN32) && !defined(__CYGWIN__)
LARGE_INTEGER ticks;
QueryPerformanceFrequency(&ticks);
Trap