How to suppress g++ errors involving restrict directive?
<p>My C++ compiler cannot understand the <code>restrict</code> directive.</p>

<p>How do I suppress these errors?</p>

<pre><code>/usr/include/inttypes.h:271: error: expected ',' or '...' before 'nptr'
</code></pre>

<p><code>usr/include/inttypes.h</code> contains</p>

<pre><code>extern intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base);
</code></pre>

<p>Compile command:</p>

<pre><code>g++ -c -pipe -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall
-W -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-DPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -o player.o ../dir/player.cpp
</code></pre>

<p>Edit:</p>

<pre><code>$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
</code></pre>
