Merge pull request #215 from anholt/issue-214

Use EGL_NO_X11 to disable X11 headers
macos/v1.5.9
Emmanuele Bassi 5 years ago committed by GitHub
commit dcb0f31ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/dispatch_common.h

@ -47,9 +47,12 @@
#endif
#if PLATFORM_HAS_EGL
# if !ENABLE_X11
/* Mesa uses this symbol to avoid including X11 headers when including
* EGL.h; since X11 was explicitly disabled at configuration time, we
* should do the same
/* Disable including X11 headers if the X11 support was disabled at
* configuration time
*/
# define EGL_NO_X11 1
/* Older versions of Mesa use this symbol to achieve the same result
* as EGL_NO_X11
*/
# define MESA_EGL_NO_X11_HEADERS 1
# endif

Loading…
Cancel
Save