Problem with conditional #include

I get one #error or the other, not both.

That implies that the preprocessor is handling the conditionals correctly. Hmmmmm.

Do you have code somewhere else, like in another tab, that might be compiling too?