From 985c2fca10b9338ef894cf8d34877dfbe7468e6e Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 19 Jun 2010 00:21:39 +0800 Subject: egl: Add a test for MESA_EGL_NO_X11_HEADERS. When the macro is defined, X11 headers will not be included. --- include/EGL/eglplatform.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index c625088d6c..33a3e5f889 100644 --- a/include/EGL/eglplatform.h +++ b/include/EGL/eglplatform.h @@ -80,6 +80,14 @@ typedef void *EGLNativePixmapType; #elif defined(__unix__) || defined(__unix) +#ifdef MESA_EGL_NO_X11_HEADERS + +typedef void *EGLNativeDisplayType; +typedef khronos_uint32_t EGLNativePixmapType; +typedef khronos_uint32_t EGLNativeWindowType; + +#else + /* X11 (tentative) */ #include #include @@ -88,6 +96,8 @@ typedef Display *EGLNativeDisplayType; typedef Pixmap EGLNativePixmapType; typedef Window EGLNativeWindowType; +#endif /* MESA_EGL_NO_X11_HEADERS */ + #else #error "Platform not recognized" #endif -- cgit v1.2.3