From cab3342a2dbe5bbd62aeed0b0436e34a646fa741 Mon Sep 17 00:00:00 2001 From: Peter Munch-Ellingsen Date: Mon, 27 Jan 2025 16:57:53 +0100 Subject: [PATCH] Fix check for Nintendo Switch target (#24652) This should fix ringabouts comment here: https://github.com/nim-lang/Nim/pull/24639#issuecomment-2615107496 I wasn't aware that `nintendoswitch` and `posix` would be active at the same time, so I falsely inverted a check. --- 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 c96a493ec68c..1fac8f87447f 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -255,7 +255,7 @@ when supportedSystem: for ext in extensions: var x = addFileExt(x, ext) if fileExists(x): - when defined(posix): #not (defined(windows) or defined(nintendoswitch)): + when defined(posix) and not defined(nintendoswitch): while followSymlinks: # doubles as if here if x.symlinkExists: var r = newString(maxSymlinkLen)