lib/igt_display: workaround a name conflict in Android
authorOscar Mateo <oscar.mateo@intel.com>
Tue, 12 Nov 2013 11:50:44 +0000 (11:50 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Nov 2013 11:16:23 +0000 (12:16 +0100)
PLANE_A/PLANE_B are used by libdrm's i915_drm.h in Android.

v2: Changes suggested by Daniel Vetter and Damien Lespiau:
- Pimp up comment with a FIXME.
- Reword commit message.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/igt_display.h

index 1357ce9..84638b2 100644 (file)
@@ -33,6 +33,10 @@ enum pipe {
 };
 #define pipe_name(p) ((p) + 'A')
 
+/* FIXME: i915_drm.h on Android pollutes the general namespace. */
+#undef PLANE_A
+#undef PLANE_B
+
 enum plane {
         PLANE_A = 0,
         PLANE_B,