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-20 23:25:58 +02:00
Родитель e1146443e9
Коммит f01367c7d5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -65,7 +65,7 @@
#include "gfxDirectFBSurface.h"
#endif
#ifdef CAIRO_HAS_QT_SURFACE
#ifdef 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
#ifdef CAIRO_HAS_QT_SURFACE && defined(MOZ_WIDGET_QT)
else if (stype == CAIRO_SURFACE_TYPE_QT) {
result = new gfxQPainterSurface(csurf);
}