aboutsummaryrefslogtreecommitdiffstats
path: root/include/c99_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/c99_compat.h')
-rw-r--r--include/c99_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c99_compat.h b/include/c99_compat.h
index d704baf12b9..729b5b79868 100644
--- a/include/c99_compat.h
+++ b/include/c99_compat.h
@@ -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__