summaryrefslogtreecommitdiff
path: root/src/waffle/x11_egl/xegl_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/waffle/x11_egl/xegl_platform.h')
-rw-r--r--src/waffle/x11_egl/xegl_platform.h22
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