aco: fix regclass checks when fixing to vcc/exec with Builder
[mesa.git] / include / c99_compat.h
index d704baf12b91f2831a757d745674c41e28828026..729b5b798688c1841625d0ff313a9b3efe03529b 100644 (file)
@@ -96,7 +96,7 @@
  * - http://cellperformance.beyond3d.com/articles/2006/05/demystifying-the-restrict-keyword.html
  */
 #ifndef restrict
-#  if (__STDC_VERSION__ >= 199901L)
+#  if (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
      /* C99 */
 #  elif defined(__GNUC__)
 #    define restrict __restrict__