0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-03 16:35:16 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/2102-mix-egl-fix-include.patch
2025-04-14 23:50:29 +08:00

48 lines
1.7 KiB
Diff

--- a/third_party/dawn/third_party/khronos/EGL-Registry/api/EGL/eglplatform.h
+++ b/third_party/dawn/third_party/khronos/EGL-Registry/api/EGL/eglplatform.h
@@ -88,7 +88,7 @@
typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
-#elif defined(__ANDROID__) || defined(ANDROID)
+#elif (defined(__ANDROID__) || defined(ANDROID)) && !defined(__TERMUX__)
struct ANativeWindow;
struct egl_native_pixmap_t;
--- a/third_party/khronos/EGL/eglplatform.h
+++ b/third_party/khronos/EGL/eglplatform.h
@@ -88,7 +88,7 @@
typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
-#elif defined(__ANDROID__) || defined(ANDROID)
+#elif (defined(__ANDROID__) || defined(ANDROID)) && !defined(__TERMUX__)
struct ANativeWindow;
struct egl_native_pixmap_t;
--- a/third_party/angle/third_party/glmark2/src/src/glad/include/EGL/eglplatform.h
+++ b/third_party/angle/third_party/glmark2/src/src/glad/include/EGL/eglplatform.h
@@ -88,7 +88,7 @@
typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
-#elif defined(__ANDROID__) || defined(ANDROID)
+#elif (defined(__ANDROID__) || defined(ANDROID)) && !defined(__TERMUX__)
struct ANativeWindow;
struct egl_native_pixmap_t;
--- a/third_party/angle/include/EGL/eglplatform.h
+++ b/third_party/angle/include/EGL/eglplatform.h
@@ -88,7 +88,7 @@
typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
-#elif defined(__ANDROID__) || defined(ANDROID)
+#elif (defined(__ANDROID__) || defined(ANDROID)) && !defined(__TERMUX__)
struct ANativeWindow;
struct egl_native_pixmap_t;