diff --git a/src/first.h b/src/first.h index caa19c14..5dc1ad03 100644 --- a/src/first.h +++ b/src/first.h @@ -129,5 +129,14 @@ #endif #endif +#ifndef __attribute_pure__ +#if __has_attribute(pure) \ + || __GNUC_PREREQ(2,96) +#define __attribute_pure__(x) __attribute__((__pure__ x)) +#else +#define __attribute_pure__(x) +#endif +#endif + #endif