Added ifdef and removed excess whitespace.