util: Rename PURE to ATTRIBUTE_PURE.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 7 Aug 2015 12:07:40 +0000 (13:07 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 9 Aug 2015 10:32:43 +0000 (11:32 +0100)
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 <brianp@vmware.com>
src/util/macros.h

index 5c5c92ec610ebac9dcce2d7e5e9164306e67f313..84e4f182bcf644092b60eeefedf219e2f600680d 100644 (file)
@@ -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