Browse Source

Remove __restrict when not supported
-Erik

Eric Andersen 25 years ago
parent
commit
69e291e407
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/features.h

+ 6 - 0
include/features.h

@@ -9,6 +9,12 @@
 #define	__UCLIBC_MAJOR__	9
 #define	__UCLIBC_MINOR__	1
 
+/* __restrict is known in EGCS 1.2 and above. */
+#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ <
+	92)
+# define __restrict     /* Ignore */
+#endif
+
 
 #ifdef __STDC__