From: Chia-I Wu Date: Fri, 18 Jun 2010 16:21:39 +0000 (+0800) Subject: egl: Add a test for MESA_EGL_NO_X11_HEADERS. X-Git-Tag: 062012170305~11681 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=985c2fca10b9338ef894cf8d34877dfbe7468e6e;p=profile%2Fivi%2Fmesa.git egl: Add a test for MESA_EGL_NO_X11_HEADERS. When the macro is defined, X11 headers will not be included. --- diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index c625088..33a3e5f 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