ObjC macro ifdef and defined <p>I'm trying to do a macro where if AAA and BBB does not exists. Something like this:</p> <pre><code>#ifdef !AAA &amp;&amp; !BBB #endif </code></pre> <p>or this:</p> <pre><code>#ifndef AAA || BBB #endif </code></pre> <p>However, Xcode is throwing me errors, so I've tried <code>#ifdef !(defined AAA) &amp;&amp; !(defined BBB)</code> or some other such combinations and it seems like Xcode doesn't seems to understand defined. I'm getting "Macro names must be identifiers" or "Extra tokens at the end of #ifdef directive" errors.</p> <p>Any idea how I could workaround this problem?</p>