From: albert <> Date: Mon, 25 Nov 2002 05:05:52 +0000 (+0000) Subject: restrict X-Git-Tag: v3.3.0~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe1be01b3a5d8401495a0130d3f0d40f83428d63;p=procps-ng restrict --- diff --git a/proc/procps.h b/proc/procps.h index 0b1503c9..aaa68d97 100644 --- a/proc/procps.h +++ b/proc/procps.h @@ -9,6 +9,16 @@ /* get page info */ #include +#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);