From 62742dcecaefbf5e101659b1366195d2bdd56f98 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 082eccd17..c1edf065a 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)