summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-06 19:36:29 +0200
committerAraq <rumpf_a@web.de>2014-04-06 19:36:29 +0200
commita4ccd7b86524a9292441dd61eb6fd1c3ceba70ca (patch)
tree4967487d6b97876655daeb8022d1aa1777db0e97 /lib/system/sysio.nim
parent5def38ad694337b27d7c996441e67e5f388ce94f (diff)
downloadNim-a4ccd7b86524a9292441dd61eb6fd1c3ceba70ca.tar.gz
doc generation for asyncdispatch works
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r--lib/system/sysio.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim
index 56e6a9e5f..02c17b92b 100644
--- a/lib/system/sysio.nim
+++ b/lib/system/sysio.nim
@@ -176,9 +176,10 @@ proc rawEchoNL() {.inline, compilerproc.} = write(stdout, "\n")
 
 # interface to the C procs:
 
-when defined(windows) and not defined(useWinAnsi):
+when (defined(windows) and not defined(useWinAnsi)) or defined(nimdoc):
   include "system/widestrs"
-  
+
+when defined(windows) and not defined(useWinAnsi):  
   proc wfopen(filename, mode: WideCString): pointer {.
     importc: "_wfopen", nodecl.}
   proc wfreopen(filename, mode: WideCString, stream: TFile): TFile {.