How to install C11 compiler on Mac OS with optional string functions included?
<p>I'm trying the below code to see if the optional string functions in C are supported (I've got Mac OS X El Capitan and XCode installed)...</p>

<pre><code>#include &lt;stdio.h&gt;

int main(void)
{
  #if defined __STDC_LIB_EXT1__
    printf("Optional functions are defined.\n");
  #else
    printf("Optional functions are not defined.\n");
  #endif

  return 0;
}
</code></pre>

<p>...but it suggests they aren't.</p>

<p>I've tried all the different compilers I have from XCode (cc, gcc, llvm-gcc, clang). </p>

<p>I've also tried <code>brew install gcc</code> assuming that the GNU C compiler would give me these extra functions, but it doesn't.</p>

<p>Is there a way to simply install a C11 compatible compiler on Mac OS that'll give me these additional (i.e. safe) string functions.</p>