# This was parsed even though it should not! proc chdir(path: CString): cint {.import: "chdir", header: "dirHeader".} proc getcwd(buf: CString, buflen: cint): CString when defined(unix): {.import: "getcwd", header: "".} #ERROR elif defined(windows): {.import: "getcwd", header: ""} else: {.error: "os library not ported to your OS. Please help!".}