Changed to ifdef to be consistent with the rest of the codebase