diff options
-rw-r--r-- | lib/pure/includes/osenv.nim | 2 | ||||
-rw-r--r-- | lib/pure/includes/oserr.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/includes/osenv.nim b/lib/pure/includes/osenv.nim index f9c076158..bc4750121 100644 --- a/lib/pure/includes/osenv.nim +++ b/lib/pure/includes/osenv.nim @@ -1,6 +1,6 @@ # Include file that implements 'getEnv' and friends. Do not import it! -when not declared(os): +when not declared(os) and not declared(ospaths): {.error: "This is an include file for os.nim!".} from parseutils import skipIgnoreCase diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index 947bdd9a9..68ce5d95f 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -1,6 +1,6 @@ # Include file that implements 'osErrorMsg' and friends. Do not import it! -when not declared(os): +when not declared(os) and not declared(ospaths): {.error: "This is an include file for os.nim!".} when not defined(nimscript): |