From 3d2f0e2c7ce73299e57f2ebd5ee52822c3543554 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:06:23 +0800 Subject: make more standard libraries work with `nimPreviewSlimSystem` (#20343) * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last --- lib/std/sysrand.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/std/sysrand.nim') diff --git a/lib/std/sysrand.nim b/lib/std/sysrand.nim index 4ee25d01e..ff62c920b 100644 --- a/lib/std/sysrand.nim +++ b/lib/std/sysrand.nim @@ -62,6 +62,9 @@ when not defined(js): when defined(posix): import posix +when defined(nimPreviewSlimSystem): + import std/assertions + const batchImplOS = defined(freebsd) or defined(openbsd) or defined(zephyr) or (defined(macosx) and not defined(ios)) batchSize {.used.} = 256 -- cgit 1.4.1-2-gfad0