Add a missing #ifdef and remove a left-over include to make gbm optional

https://bugzilla.gnome.org/show_bug.cgi?id=741829
This commit is contained in:
Ting-Wei Lan 2014-12-21 16:54:59 +08:00
parent 69079b3b48
commit aeef98fd19
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,10 @@
#include "meta-cursor.h"
#include <cogl/cogl.h>
#ifdef HAVE_NATIVE_BACKEND
#include <gbm.h>
#endif
typedef struct {
CoglTexture2D *texture;

View File

@ -30,8 +30,6 @@
#include <meta/screen.h>
#include "meta-cursor.h"
#include <gbm.h>
#define META_TYPE_CURSOR_RENDERER (meta_cursor_renderer_get_type ())
#define META_CURSOR_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_CURSOR_RENDERER, MetaCursorRenderer))
#define META_CURSOR_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_CURSOR_RENDERER, MetaCursorRendererClass))