move widestrs out of system (#20462)
* move widestrs out of system * fix osproc
This commit is contained in:
parent
cbd9fee22a
commit
0b1650576c
29 changed files with 64 additions and 8 deletions
|
|
@ -61,6 +61,8 @@ when not defined(nimscript):
|
|||
proc c_putenv(envstring: cstring): cint {.importc: "_putenv", header: "<stdlib.h>".}
|
||||
from std/private/win_setenv import setEnvImpl
|
||||
import winlean
|
||||
when defined(nimPreviewSlimSystem):
|
||||
import std/widestrs
|
||||
proc c_wgetenv(varname: WideCString): WideCString {.importc: "_wgetenv",
|
||||
header: "<stdlib.h>".}
|
||||
proc getEnvImpl(env: cstring): WideCString = c_wgetenv(env.newWideCString)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue