aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/rng.h')
-rw-r--r--src/stdlib/rng.h5
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