summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-08 09:18:09 +0200
committerAraq <rumpf_a@web.de>2014-09-08 09:18:09 +0200
commitc53a27f0dc4e867701955e97b607aab2b66a0740 (patch)
tree519ce7a9527e74c4a94109fcaf81ad21be6a12f3 /lib/pure
parent7333237be6abe3f170fe440e887ae83707fd748f (diff)
downloadNim-c53a27f0dc4e867701955e97b607aab2b66a0740.tar.gz
nimfix supports specialized '.nimfix' modules
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 8227c92b2..6b3ee6e6d 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -187,7 +187,7 @@ proc osErrorMsg*(): string {.rtl, extern: "nos$1", deprecated.} =
   ## On Windows ``GetLastError`` is checked before ``errno``.
   ## Returns "" if no error occured.
   ##
-  ## **Deprecated since version 0.9.4**: use the other ``OSErrorMsg`` proc.
+  ## **Deprecated since version 0.9.4**: use the other ``osErrorMsg`` proc.
 
   result = ""
   when defined(Windows):
@@ -225,7 +225,8 @@ proc raiseOSError*(msg: string = "") {.noinline, rtl, extern: "nos$1",
     raise newException(OSError, msg)
 {.pop.}
 
-{.deprecated: [osError: raiseOSError].}
+when not defined(nimfix):
+  {.deprecated: [osError: raiseOSError].}
 
 proc `==`*(err1, err2: OSErrorCode): bool {.borrow.}
 proc `$`*(err: OSErrorCode): string {.borrow.}