projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa47678
)
mesa: Prevent collision of ERROR define on Windows.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 11 Mar 2012 10:47:21 +0000
(10:47 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 11 Mar 2012 16:50:29 +0000
(16:50 +0000)
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>
src/mesa/main/errors.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/errors.c
b/src/mesa/main/errors.c
index 611c77d1ca67a2c40c83c127cfd3c10b8182748e..22561003a6f3590f98eccf11710b0411cdf7da11 100644
(file)
--- a/
src/mesa/main/errors.c
+++ b/
src/mesa/main/errors.c
@@
-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,