From: Enrico Scholz Date: Wed, 18 Feb 2004 04:38:39 +0000 (+0000) Subject: added PURE X-Git-Tag: VERSION_0_10~632 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6763d92c3f9f833d2ae6a2d0a3f2ba2cc7cbc580;p=util-vserver.git added PURE git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@929 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/compat.h b/util-vserver/compat.h index 60a79d7..9f5eccd 100644 --- a/util-vserver/compat.h +++ b/util-vserver/compat.h @@ -44,11 +44,17 @@ # define NONNULL(ARGS) # define ALWAYSINLINE # endif +# if __GNUC__>3 +# define PURE __attribute__((__pure__)) +# else +# define PURE +# endif #else # define NONNULL(ARGS) # define UNUSED # define NORETURN # define ALWAYSINLINE +# define PURE #endif #if !defined(__STDC_VERSION__) || (__STDC_VERSION__<199901L)