diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:31:53 -0400 |
| commit | ca76fb335ae7b3f820beeeed5667950e7489711e (patch) | |
| tree | e0ef48cce92aeeb92241ef98c65bf3af84c05ca4 /src/stdlib/rng.h | |
| parent | 4de0fee8f694503b453e04084caaab55f8670b6c (diff) | |
Add compiler guards for GCC directives
Diffstat (limited to 'src/stdlib/rng.h')
| -rw-r--r-- | src/stdlib/rng.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
