File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,13 @@ lib/posix/posix_openbsd_amd64.nim
170
170
# but contain potentially valuable docs on OS-specific symbols (eg OSX) that
171
171
# don't end up in the main docs; we ignore these for now.
172
172
173
- proc isRelativeTo(path, base: string ): bool =
174
- # pending #13212 use os.isRelativeTo
175
- let path = path.normalizedPath
176
- let base = base.normalizedPath
177
- let ret = relativePath(path, base)
178
- result = path.len > 0 and not ret.startsWith " .."
173
+ when (NimMajor , NimMinor ) < (1 , 1 ) or not declared(isRelativeTo):
174
+ proc isRelativeTo(path, base: string ): bool =
175
+ # pending #13212 use os.isRelativeTo
176
+ let path = path.normalizedPath
177
+ let base = base.normalizedPath
178
+ let ret = relativePath(path, base)
179
+ result = path.len > 0 and not ret.startsWith " .."
179
180
180
181
proc getDocList(): seq [string ] =
181
182
var t: HashSet[string ]
You can’t perform that action at this time.
0 commit comments