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:
José Fonseca 2012-10-10 11:40:07 +01:00
parent a555888151
commit 3f228ed090
1 changed files with 1 additions and 0 deletions

View File

@ -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