diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 16:22:47 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 18:06:34 +0300 |
commit | eebb2479613995168bdf1812b72325b905d8eb38 (patch) | |
tree | b5bd75dccaf034957169eb7cfd0509194edfb48d | |
parent | c71487d10698f47bccb56f3ad05da8527484df52 (diff) |
Allow compiling with X11 EGL disabled
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
-rw-r--r-- | src/waffle/x11_egl/xegl_platform.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/waffle/x11_egl/xegl_platform.h b/src/waffle/x11_egl/xegl_platform.h index 61638d0..d127a71 100644 --- a/src/waffle/x11_egl/xegl_platform.h +++ b/src/waffle/x11_egl/xegl_platform.h @@ -19,10 +19,30 @@ struct native_dispatch; union native_platform; +#ifdef WAFFLE_HAS_X11_EGL + union native_platform* xegl_platform_create( int gl_api, const struct native_dispatch **dispatch); bool -xegl_platform_destroy(union native_platform *self);
\ No newline at end of file +xegl_platform_destroy(union native_platform *self); + +#else + +static inline union native_platform* +xegl_platform_create( + int gl_api, + const struct native_dispatch **dispatch) +{ + return NULL; +} + +static inline bool +xegl_platform_destroy(union native_platform *self) +{ + return true; +} + +#endif |