egl: Fix inclusion of egl.h+mesa_glinterop.h
authorMatt Turner <mattst88@gmail.com>
Fri, 7 Jul 2017 01:40:53 +0000 (18:40 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 21 Aug 2017 21:45:44 +0000 (14:45 -0700)
commit4e97084591c206338af4425c33edb833de348816
treea3e4f93d121cc85662e78e1c9344c9b926dcd65d
parentdb039d67aaae0c3af46cdefe78ea79c5ba860cfe
egl: Fix inclusion of egl.h+mesa_glinterop.h

Previously clang would warn about redefinition of typedef EGLDisplay. Avoid
this by adding preprocessor guards to mesa_glinterop.h and including it
after EGL.h is indirectly included.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
include/GL/mesa_glinterop.h
src/egl/drivers/dri2/egl_dri2.c
src/egl/main/eglapi.c