Can I ask you to take a couple of moments and read this: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum
and then go back and edit your post to include code tags around your code and also include your entire error message (again with code tags).
That #ifdef statement is fine. Are you defining it somewhere else?