To prepare for an eventual Windows port, you need to declare this variable up at the top of the function.  Inline variable declarations aren't technically allowed until C99, which Visual Studio doesn't support very well.