mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
mesa: Prevent collision of ERROR define on Windows.
This issue might recur on other OSes. If so then it might be better to remove the C-preprocessor magic, and use fully qualified defines instead. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fa476782fd
commit
7221f52389
1 changed files with 3 additions and 0 deletions
|
|
@ -55,6 +55,9 @@ static char out_of_memory[] = "Debugging error: out of memory";
|
|||
#define source_is(s, kind) enum_is(s, SOURCE, kind)
|
||||
#define type_is(t, kind) enum_is(t, TYPE, kind)
|
||||
|
||||
/* Prevent define collision on Windows */
|
||||
#undef ERROR
|
||||
|
||||
enum {
|
||||
SOURCE_APPLICATION,
|
||||
SOURCE_THIRD_PARTY,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue