From 62e085c5ed33e45152da349af32549443be2770f Mon Sep 17 00:00:00 2001 From: oan Date: Tue, 4 Feb 2025 16:30:14 +0000 Subject: [PATCH] Configuration - regression in wasm build #342 Quick fix absent definitions --- src/OpenGl/OpenGl_GraphicDriver.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/OpenGl/OpenGl_GraphicDriver.cxx b/src/OpenGl/OpenGl_GraphicDriver.cxx index 86cddf2ecc..a06c449019 100644 --- a/src/OpenGl/OpenGl_GraphicDriver.cxx +++ b/src/OpenGl/OpenGl_GraphicDriver.cxx @@ -40,10 +40,13 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_GraphicDriver, Graphic3d_GraphicDriver) #include #endif -#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) && !defined(__EMSCRIPTEN__) \ +#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) \ && (!defined(__APPLE__) || defined(HAVE_XLIB)) #include // XOpenDisplay() - #include + #include + #if !defined(__EMSCRIPTEN__) + #include + #endif #endif #if !defined(HAVE_EGL)