summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files/nbcompat/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/libnbcompat/files/nbcompat/cdefs.h')
-rw-r--r--pkgtools/libnbcompat/files/nbcompat/cdefs.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/cdefs.h b/pkgtools/libnbcompat/files/nbcompat/cdefs.h
index 0149af8667d..e40ee70c1f3 100644
--- a/pkgtools/libnbcompat/files/nbcompat/cdefs.h
+++ b/pkgtools/libnbcompat/files/nbcompat/cdefs.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.1 2004/08/23 03:32:13 jlam Exp $ */
+/* $NetBSD: cdefs.h,v 1.2 2004/09/11 19:01:40 jlam Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -92,4 +92,16 @@
# endif
#endif
+#ifndef __restrict
+/*
+ * C99 defines the restrict type qualifier keyword, which was made available
+ * in GCC 2.92.
+ */
+# if __STDC_VERSION__ >= 199901L
+# define __restrict restrict
+# else
+# define __restrict /* delete __restrict when not supported */
+# endif
+#endif
+
#endif /* !_NBCOMPAT_SYS_CDEFS_H_ */