summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
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 {.