From ca76fb335ae7b3f820beeeed5667950e7489711e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 28 Mar 2025 15:31:53 -0400 Subject: Add compiler guards for GCC directives --- src/stdlib/rng.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/stdlib/rng.h') diff --git a/src/stdlib/rng.h b/src/stdlib/rng.h index 5bc4794f..34f1ca03 100644 --- a/src/stdlib/rng.h +++ b/src/stdlib/rng.h @@ -26,6 +26,11 @@ Num_t RNG$num(RNG_t rng, Num_t min, Num_t max); Num32_t RNG$num32(RNG_t rng, Num32_t min, Num32_t max); extern const TypeInfo_t RNG$info; +// TinyCC doesn't implement _Thread_local +#ifdef __TINYC__ +extern RNG_t default_rng; +#else extern _Thread_local RNG_t default_rng; +#endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3