diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 16:21:38 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 18:06:23 +0300 |
commit | c71487d10698f47bccb56f3ad05da8527484df52 (patch) | |
tree | acd0a7e202c7394610659942c931894524f042ac | |
parent | 33f854ccfe09cb1e138b6393cab57d6f23178f99 (diff) |
Allow compiling with wayland disabled
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
-rw-r--r-- | src/waffle/wayland/wayland_platform.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/waffle/wayland/wayland_platform.h b/src/waffle/wayland/wayland_platform.h index a5d0f84..b28ac50 100644 --- a/src/waffle/wayland/wayland_platform.h +++ b/src/waffle/wayland/wayland_platform.h @@ -19,10 +19,30 @@ struct native_dispatch; union native_platform; +#ifdef WAFFLE_HAS_WAYLAND + union native_platform* wayland_platform_create( int gl_api, const struct native_dispatch **dispatch); bool -wayland_platform_destroy(union native_platform *self);
\ No newline at end of file +wayland_platform_destroy(union native_platform *self); + +#else + +static inline union native_platform* +wayland_platform_create( + int gl_api, + const struct native_dispatch **dispatch) +{ + return NULL; +} + +static inline bool +wayland_platform_destroy(union native_platform *self) +{ + return NULL; +} + +#endif |