Try to get a standard set of platform defines.
proc getPlatform*(): cstring {.cdecl, importc: "SDL_GetPlatform", dynlib: SDL2_LIB.}