I'm working on some wrapper code for Haiku softpipe driver, and I stumbled across the following strange build error when including sp_context.h: (Mesa 9.0)

In file included from ../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11-17/src/gallium/drivers/softpipe/sp_context.h:36:0,
                 from HaikuSoftPipe.cpp:14:
../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11-17/src/gallium/auxiliary/draw/draw_vertex.h: In function 'size_t draw_vinfo_size(const vertex_info*)': ../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11-17/src/gallium/auxiliary/draw/draw_vertex.h:96:11: error: 'a' cannot appear in a constant-expression ../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11-17/src/gallium/auxiliary/draw/draw_vertex.h:96:11: error: '->' cannot appear in a constant-expression


The error seems pretty cut and dry... not sure why Gallium compiles though. The only thing I can think of is that maybe Mesa throws in some buildflag to ignore the error or there is a missing header dependency in auxiliary/draw/draw_vertex.h.


Thoughts?

 -- Alex
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to