i965: Hack in avoidance of c++ reserved keyword in libdrm.
authorEric Anholt <eric@anholt.net>
Thu, 26 Aug 2010 22:43:00 +0000 (15:43 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 Aug 2010 22:43:36 +0000 (15:43 -0700)
I'm also fixing this upstream in libdrm, but this avoids new libdrm
dependency for the moment.

src/mesa/drivers/dri/i965/brw_fs.cpp

index 640f797e9e6de20e2b7e6e6c04d50f17a6614466..11c79b11bfc0e97d711b2ab9b057059cc72e6602 100644 (file)
  */
 
 extern "C" {
+
+#include <sys/types.h>
+/* Evil hack for using libdrm in a c++ compiler. */
+#define virtual virt
+#include "i915_drm.h"
+#include "intel_bufmgr.h"
+#undef virtual
+
 #include "main/macros.h"
 #include "main/shaderobj.h"
 #include "program/prog_parameter.h"