]> granicus.if.org Git - procps-ng/commitdiff
restrict
authoralbert <>
Mon, 25 Nov 2002 05:05:52 +0000 (05:05 +0000)
committeralbert <>
Mon, 25 Nov 2002 05:05:52 +0000 (05:05 +0000)
proc/procps.h

index 0b1503c985335fcc5a7b6a9052740a85da3733be..aaa68d97da44b0ef0e60314af331c95296065a76 100644 (file)
@@ -9,6 +9,16 @@
 /* get page info */
 #include <asm/page.h>
 
+#if !defined(restrict) && __STDC_VERSION__ < 199901
+#if __GNUC__ > 2 || __GNUC_MINOR__ >= 91    // maybe 92 or 95 ?
+#define restrict __restrict__
+#else
+#warning No restrict keyword?
+#define restrict
+#endif
+#endif
+
+
 extern void *xrealloc(void *oldp, unsigned int size);
 extern void *xmalloc(unsigned int size);
 extern void *xcalloc(void *pointer, int size);