Declare all C variables at the start of the block for compatibility with Visual C.