i965: Move libdrm/C++ hack introduced in fa2deb3d to intel_context.h
authorCedric Vivier <cedricv@neonux.com>
Sun, 29 Aug 2010 03:01:46 +0000 (20:01 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 29 Aug 2010 03:02:54 +0000 (20:02 -0700)
Fixes build on Linux/GCC 4.4 as libdrm includes are also used by other
brw_fs_*.cpp files.

Bug #29855

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

index 63eae840c2769e69f548f9e8374dd71eb764d57f..ede1848520ad535ab815aa2a6b70006ee788a078 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"