mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 17:38:20 +02:00
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>
This commit is contained in:
parent
27141f984d
commit
512aa0647f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue