I am looking a set of #ifdef's to check availability of __restrict keyword for GCC and Visual Studio. I assume that it needs to check compiler version, but I don't know for which versions it was introduced. Anyone that can help me out?

UPDATE: This must (and only needs to) work when compiling as C89! So I cannot rely on __STDC_VERSION__ indicating C99, or C99 support.

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top