From 6763d92c3f9f833d2ae6a2d0a3f2ba2cc7cbc580 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Wed, 18 Feb 2004 04:38:39 +0000 Subject: [PATCH] added PURE git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@929 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/compat.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 1.8.1.5