Bug 596200 - Ensure that MOZ_WIDGET_QT is defined before including headers that will break non qt builds. r+a=roc

This commit is contained in:
Joseph Yasi 2010-09-21 01:02:00 +02:00
parent 2c7fd7433d
commit 2dd82f8e4d

View File

@ -65,7 +65,7 @@
#include "gfxDirectFBSurface.h"
#endif
#ifdef CAIRO_HAS_QT_SURFACE
#if defined(CAIRO_HAS_QT_SURFACE) && defined(MOZ_WIDGET_QT)
#include "gfxQPainterSurface.h"
#endif
@ -191,7 +191,7 @@ gfxASurface::Wrap (cairo_surface_t *csurf)
result = new gfxDirectFBSurface(csurf);
}
#endif
#ifdef CAIRO_HAS_QT_SURFACE
#if defined(CAIRO_HAS_QT_SURFACE) && defined(MOZ_WIDGET_QT)
else if (stype == CAIRO_SURFACE_TYPE_QT) {
result = new gfxQPainterSurface(csurf);
}