mesa: Prevent CONST macro re-definition.
Should fix MSVC build, as windows.h also defines CONST. CONST usage in get.c is not new, so probably this just appeared now due to changes in the includes.
This commit is contained in:
parent
a555888151
commit
3f228ed090
|
@ -172,6 +172,7 @@ union value {
|
|||
LOC_CONTEXT, type, offsetof(struct gl_context, field)
|
||||
#define ARRAY_FIELD(field, type) \
|
||||
LOC_ARRAY, type, offsetof(struct gl_array_object, field)
|
||||
#undef CONST /* already defined through windows.h */
|
||||
#define CONST(value) \
|
||||
LOC_CONTEXT, TYPE_CONST, value
|
||||
|
||||
|
|
Loading…
Reference in New Issue