Browse Source

Remove __restrict when not supported
-Erik

Eric Andersen 25 năm trước cách đây
mục cha
commit
69e291e407
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      include/features.h

+ 6 - 0
include/features.h

@@ -9,6 +9,12 @@
 #define	__UCLIBC_MAJOR__	9
 #define	__UCLIBC_MAJOR__	9
 #define	__UCLIBC_MINOR__	1
 #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__
 #ifdef __STDC__