added PURE
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 18 Feb 2004 04:38:39 +0000 (04:38 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 18 Feb 2004 04:38:39 +0000 (04:38 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@929 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/compat.h

index 60a79d7..9f5eccd 100644 (file)
 #    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)