summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-10-06 13:21:31 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-10-06 14:08:17 +0200
commitf0530a39daa4ebeb8d9b2fd790ce684926599ce7 (patch)
tree30b415968072e5628519dfb6e3c8425209d1a09c /recipes
parent094beca63abfbeaadeddc2ad71eca3a905861d80 (diff)
trdx-nv-binaries: don't include X11 headers in eglplatform.h
Qt5 uses tokens which would be renamed through defines in the X11 headers. So don't inject these defines into Qt5 sources through eglplatform.h. gcc 4.8 is more strict on type mismatch in assignments, so use correct variable type for the EGLNativeDisplayType pointer.
Diffstat (limited to 'recipes')
-rw-r--r--recipes/trdx-nv-binaries/files/eglplatform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes/trdx-nv-binaries/files/eglplatform.h b/recipes/trdx-nv-binaries/files/eglplatform.h
index 628968e..a141762 100644
--- a/recipes/trdx-nv-binaries/files/eglplatform.h
+++ b/recipes/trdx-nv-binaries/files/eglplatform.h
@@ -106,9 +106,10 @@ typedef void *EGLNativeDisplayType;
#elif defined(__unix__)
+/* don't include the X headers here, some define clash with Qt5 symbols */
#if 1
-typedef void *EGLNativeDisplayType;
+typedef struct _XDisplay *EGLNativeDisplayType;
typedef khronos_uint32_t EGLNativePixmapType;
typedef khronos_uint32_t EGLNativeWindowType;