Surround variable declarations by preprocessor conditionals to avoid warnings: