Reorder lines so declaration comes first to prevent compiler error on Windows