From 3b02b335647c5dc2340745c40c558536d90e7517 Mon Sep 17 00:00:00 2001 From: dom96 Date: Fri, 27 Jan 2012 22:02:09 +0000 Subject: [PATCH] Fixed windows os.nim issue that was recently introduced. --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index a57b45b323..6b8176ddec 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -509,7 +509,7 @@ proc expandFilename*(filename: string): string {.rtl, extern: "nos$1".} = var L = GetFullPathNameA(filename, 3072'i32, result, unused) if L <= 0'i32 or L >= 3072'i32: OSError() setLen(result, L) - when defined(macosx): + elif defined(macosx): # On Mac OS X 10.5, realpath does not allocate the buffer on its own var pathBuffer: cstring = newString(pathMax) var resultBuffer = realpath(filename, pathBuffer)