Xcode 7.3: "Ambiguous expansion of macro" when re-defining macro in prefix file
<p>I am using Xcode 7.3, and I am getting an "Ambiguous expansion of macro" warning, for a macro which was defined in Foundation, but which I have undefined and re-defined in my prefix file. I have modules enabled.</p>

<p>To reproduce:</p>

<ul>
<li>Set "Enable Modules (C and Objective-C)" to Yes in build settings</li>
<li><p>Use the following prefix file:</p>

<pre><code>#import &lt;Foundation/Foundation.h&gt;  

#undef assert  
#define assert(e)  NSLog(@"hi") // implementation is not important  
</code></pre></li>
<li><p>Use the following main source file:</p>

<pre><code>int main() {  
  assert(42);  
  return 0;  
}  
</code></pre></li>
<li><p>Then build in Xcode.</p></li>
<li>It shows an "Ambiguous expansion of macro 'assert'" warning on the line in the source file that uses the "assert" macro. The "Expanding this definition of 'assert'" points to the definition from the system header, not my redefinition. The "Other definition of 'assert'" points to the definition in my prefix file.</li>
</ul>

<p>This warning does not happen when modules is disabled.</p>