standalone target works again

This commit is contained in:
Andreas Rumpf 2016-02-19 13:06:17 +01:00
commit 8a3fd4b129

View file

@ -2591,7 +2591,6 @@ when not defined(JS): #and not defined(nimscript):
# ----------------- IO Part ------------------------------------------------ # ----------------- IO Part ------------------------------------------------
when hostOS != "standalone":
type type
CFile {.importc: "FILE", header: "<stdio.h>", CFile {.importc: "FILE", header: "<stdio.h>",
final, incompletestruct.} = object final, incompletestruct.} = object
@ -2625,7 +2624,7 @@ when not defined(JS): #and not defined(nimscript):
elif x > y: result = 1 elif x > y: result = 1
else: result = 0 else: result = 0
when not defined(nimscript): when not defined(nimscript) and hostOS != "standalone":
when defined(windows): when defined(windows):
# work-around C's sucking abstraction: # work-around C's sucking abstraction:
# BUGFIX: stdin and stdout should be binary files! # BUGFIX: stdin and stdout should be binary files!
@ -2946,7 +2945,7 @@ when not defined(JS): #and not defined(nimscript):
else: else:
include "system/sysio" include "system/sysio"
when not defined(nimscript): when not defined(nimscript) and hostOS != "standalone":
iterator lines*(filename: string): TaintedString {.tags: [ReadIOEffect].} = iterator lines*(filename: string): TaintedString {.tags: [ReadIOEffect].} =
## Iterates over any line in the file named `filename`. ## Iterates over any line in the file named `filename`.
## ##