summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-03-11 10:47:21 +0000
committerDave Airlie <[email protected]>2012-03-11 16:50:29 +0000
commit7221f52389f788f95ccf5816e2370b5a1acef7f7 (patch)
treec65e1ab0342ea48c2f227c2d9c1c3f86379ad81e /src/mesa/main/errors.c
parentfa476782fde96c93c0904bbab3bc4dd44aef8712 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 611c77d1ca6..22561003a6f 100644
--- 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,