From 7b1a38ae9658c3ed337a7a7a5ad8f5c50b82347a Mon Sep 17 00:00:00 2001 From: nimetu Date: Fri, 25 Mar 2022 12:46:35 +0200 Subject: [PATCH] Fix build error on mac/windows --- nel/src/3d/driver/opengl/driver_opengl_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 585fee8ec..b6a3199c3 100644 --- a/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -647,9 +647,11 @@ void CDriverGL::setWindowIcon(const std::vector &bitmaps) } // -------------------------------------------------- +#if defined(NL_OS_UNIX) && !defined(NL_OS_MAC) static Bool WaitForNotify( Display *dpy, XEvent *event, XPointer arg ) { return (event->type == MapNotify) && (event->xmap.window == reinterpret_cast(arg)); } +#endif bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool resizeable) { H_AUTO_OGL(CDriverGL_setDisplay)