소스 검색

Remove __restrict when not supported
-Erik

Eric Andersen 25 년 전
부모
커밋
69e291e407
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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__