11.04.2014 18:22, Hans de Goede wrote:
Signed-off-by: Hans de Goede <[email protected]>
---
src/nv_type.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/nv_type.h b/src/nv_type.h
index 6ee36d7..bfc000e 100644
--- a/src/nv_type.h
+++ b/src/nv_type.h
@@ -8,7 +8,12 @@
#include <stdbool.h>
#include <stdint.h>
#include "xf86Crtc.h"
+
+#ifdef XSERVER_PLATFORM_BUS
#include "xf86platformBus.h"
+#else
+struct xf86_platform_device; /* To avoid needing lots of #ifdef-s */
+#endif
Can't we just always use the forward declaration?
#if XF86_CRTC_VERSION >= 5
#define NOUVEAU_PIXMAP_SHARING 1
--
Alexander E. Patrakov
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel