diff options
author | Matt Turner <[email protected]> | 2017-07-06 18:40:53 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-08-21 14:45:44 -0700 |
commit | 4e97084591c206338af4425c33edb833de348816 (patch) | |
tree | a3e4f93d121cc85662e78e1c9344c9b926dcd65d /src/egl/main/eglapi.c | |
parent | db039d67aaae0c3af46cdefe78ea79c5ba860cfe (diff) |
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 <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index c935c4db79b..e3f10fcbe24 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -88,7 +88,6 @@ #include <string.h> #include "c99_compat.h" #include "c11/threads.h" -#include "GL/mesa_glinterop.h" #include "util/macros.h" #include "eglglobals.h" @@ -102,6 +101,7 @@ #include "eglimage.h" #include "eglsync.h" +#include "GL/mesa_glinterop.h" /** * Macros to help return an API entrypoint. |