Skip to content

Commit bb52c41

Browse files
authored
Merge pull request #2436 from compnerd/win-realpath
TSCLibc: add stub for `realpath` on Windows
2 parents 0f96759 + 72810aa commit bb52c41

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Sources/TSCLibc/libc.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,13 @@
1818
#endif
1919

2020
@_exported import TSCclibc
21+
22+
#if os(Windows)
23+
// char *realpath(const char *path, char *resolved_path);
24+
public func realpath(
25+
_ path: String,
26+
_ resolvedPath: UnsafeMiutableBufferPointer<CChar>?
27+
) -> UnsafePointer<CChar>? {
28+
fatalError("realpath is unimplemented")
29+
}
30+
#endif

0 commit comments

Comments
 (0)