[core] __attribute_pure__

personal/stbuehler/ci-build
Glenn Strauss 4 years ago
parent 32a8f0b3b5
commit 4fb5a791b0

@ -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

Loading…
Cancel
Save