system.nim cleanup some exported constants which should never have be… (#17909)
* system.nim cleanup some exported constants which should never have been exported
This commit is contained in:
parent
a55c7e9679
commit
fb86271556
10 changed files with 32 additions and 29 deletions
|
|
@ -21,6 +21,8 @@
|
|||
##
|
||||
## Unstable API.
|
||||
|
||||
import system/coro_detection
|
||||
|
||||
when not nimCoroutines and not defined(nimdoc):
|
||||
when defined(noNimCoroutines):
|
||||
{.error: "Coroutines can not be used with -d:noNimCoroutines".}
|
||||
|
|
|
|||
|
|
@ -1910,7 +1910,7 @@ proc copyFileToDir*(source, dir: string, options = {cfSymlinkFollow})
|
|||
copyFile(source, dir / source.lastPathPart, options)
|
||||
|
||||
when not declared(ENOENT) and not defined(windows):
|
||||
when NoFakeVars:
|
||||
when defined(nimscript):
|
||||
when not defined(haiku):
|
||||
const ENOENT = cint(2) # 2 on most systems including Solaris
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue