i915: remove 'virtual' and extern C workarounds
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Feb 2017 15:16:42 +0000 (15:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 21 Feb 2017 18:29:41 +0000 (18:29 +0000)
Analogous to previous commit.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i915/intel_context.h

index 58321698256268015f47f459e90f46ff3e43d3b4..139a03377729c0ed6750afb8bb462ead0ae17094 100644 (file)
 #include "main/mtypes.h"
 #include "main/mm.h"
 
-#ifdef __cplusplus
-extern "C" {
-       /* Evil hack for using libdrm in a c++ compiler. */
-       #define virtual virt
-#endif
-
 #include <drm.h>
 #include <intel_bufmgr.h>
 #include <i915_drm.h>
-#ifdef __cplusplus
-       #undef virtual
-#endif
 
 #include "intel_screen.h"
 #include "intel_tex_obj.h"
@@ -56,6 +47,10 @@ extern "C" {
 #include "tnl_dd/t_dd_vertex.h"
 #undef TAG
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define DV_PF_555  (1<<8)
 #define DV_PF_565  (2<<8)
 #define DV_PF_8888 (3<<8)