I have some code that doesn’t compile with the llvm compiler that is the default in xcode4.5, how can I #ifdef out that code?
thank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suggest you fix your code, you’re probably relying on undefined/unspecified behavior that just happens to be accepted by other compilers. Post your code and the error messages, and we can help you fix it.
But if you insist on just treating the symptoms and not the cause, you can figure out what preprocessor macros the compiler defines by running this command from the terminal:
From that output, look for macros indicating the specific compiler and version.