In previous versions of Visual Studio using functions like _sleep or strncpy just outputs a warning. In the latest version, it\'s suddenly an error:
Apparently new projects enable "SDK check" by default now, which treats these warnings as errors. To disable it, go to project properties -> Configuration Properties -> C/C++ -> General -> SDL checks -> No.