why not? nothing special used in the code, and i am not using winapi directly. so if the compiler, sdl2 and other libs aren't doing something special too — it should work.
tbh, i don't even need sdl. the only thing i am using sdl for is to init OpenGL, and to have the unified event loop across platforms. i could easily switch to OpenAL+libopus for sound, so sdl2_mixer is not reqlly required too. for my Oberon/Ur system (which i am using to code my small 2d games) i did exactly that: wrote simple lib to init OpenGL on win32 and X11, and OpenAL wrapper. works like a charm.
i am simply too lazy to rip out sdl and rewrite my Oberon code to C++. i'd better waste my time rewriting IVAN to Scheme: it would be useless too, but way, way more fun.

(no, i'm not going to do that. at least not right now.)