Add more defined sections for nintendo switch

This commit is contained in:
Joey Yakimowich-Payne 2018-06-22 10:47:37 +09:00
commit d3cf79e3e7
5 changed files with 45 additions and 16 deletions

View file

@ -597,7 +597,7 @@ proc quoteShellPosix*(s: string): string {.noSideEffect, rtl, extern: "nosp$1".}
else:
return "'" & s.replace("'", "'\"'\"'") & "'"
when defined(windows) or defined(posix):
when defined(windows) or defined(posix) or defined(nintendoswitch):
proc quoteShell*(s: string): string {.noSideEffect, rtl, extern: "nosp$1".} =
## Quote ``s``, so it can be safely passed to shell.
when defined(windows):