Hi, On 04/11/2014 03:17 PM, Alexander E. Patrakov wrote: > 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?
Ah yes that would be better, v2 coming up. Regards, Hans _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
