X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fcompat.h;h=9f5eccdb3b59076e8ca3f9bdd9b8c11d7fbdaa6b;hb=b62fe1576311afb7d5cd2120dfc7323875b436d1;hp=60a79d7b08799d85b021564381d8d9cb7f628005;hpb=f7f72a335688083c5df99cdd18fb6e0fca6fe0bf;p=util-vserver.git 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)