From: Jose Fonseca Date: Fri, 7 Aug 2015 12:07:40 +0000 (+0100) Subject: util: Rename PURE to ATTRIBUTE_PURE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=512aa0647f328fff69b3ce328b6466f2da8b7c4d;p=mesa.git util: Rename PURE to ATTRIBUTE_PURE. To avoid collission with windows.h's PURE macro. We could consider eventually renaming to __pure, but that would require further care, so it's left to the future. Reviewed-by: Brian Paul --- diff --git a/src/util/macros.h b/src/util/macros.h index 5c5c92ec610..84e4f182bcf 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -145,9 +145,9 @@ do { \ * return value. As a result, calls to it can be dead code eliminated. */ #ifdef HAVE_FUNC_ATTRIBUTE_PURE -#define PURE __attribute__((__pure__)) +#define ATTRIBUTE_PURE __attribute__((__pure__)) #else -#define PURE +#define ATTRIBUTE_PURE #endif #ifdef __cplusplus