summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-08-07 13:07:40 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-08-09 11:32:43 +0100
commit512aa0647f328fff69b3ce328b6466f2da8b7c4d (patch)
treec3b5ad7982806f1702792e64c3c18810169d2648 /src/util
parent27141f984d6401dc466f0e9b0c5da2a9248045e3 (diff)
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 <brianp@vmware.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/macros.h b/src/util/macros.h
index 5c5c92ec61..84e4f182bc 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