diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index ef9e778f2..427556def 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -41,6 +41,10 @@ #include #endif +/* None of this is in the Emscripten emulation layer, so no need to include + that there */ +#ifndef MAGNUM_TARGET_WEBGL + #ifndef EGL_EXT_device_base typedef void *EGLDeviceEXT; #endif @@ -60,9 +64,11 @@ typedef void* EGLObjectKHR; typedef void* EGLLabelKHR; typedef void (APIENTRY *EGLDEBUGPROCKHR)(EGLenum error, const char* command, EGLint messageType, EGLLabelKHR threadLabel, EGLLabelKHR objectLabel, const char* message); #endif +#endif namespace Magnum { namespace Platform { +#ifndef MAGNUM_TARGET_WEBGL namespace { bool extensionSupported(const char* const extensions, Containers::ArrayView extension) { @@ -75,8 +81,10 @@ bool extensionSupported(const char* const extensions, Containers::ArrayView