Warnings: correctly use #ifdef for declarations.