I would advise using a case statement here instead of two ternary operators as I hope we can extend the architecture support to mingw32 and 64 if possible.