A small fix for building with tcc .

From 820b149482d206805ca6dafef78cefa877c7b6fe Mon Sep 17 00:00:00 2001
From: felix <[email protected]>
Date: Sun, 5 Sep 2021 11:47:14 +0200
Subject: [PATCH] Tcc defines __GNUC__ but doesn't have __builtin_clzll

---
 runtime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime.c b/runtime.c
index 93dd9d29..c46cde6f 100644
--- a/runtime.c
+++ b/runtime.c
@@ -13343,7 +13343,7 @@ static inline C_u64 random64() {
 #endif
 }
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__TINYC__)
 # define	clz64	__builtin_clzll		
 #else
 /* https://en.wikipedia.org/wiki/Find_first_set#CLZ */
-- 
2.26.2

Reply via email to