Skip to content

Commit 82d8ed6

Browse files
committed
Should now compile on macOS
1 parent 76a4124 commit 82d8ed6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Framework/Renderer/Window/Platform.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void UImGui::WindowInternal::setWindowAlwaysOnTop() const noexcept
7070
#ifdef GLFW_EXPOSE_NATIVE_WIN32
7171
auto window = glfwGetWin32Window(windowMain);
7272
SetWindowPos(window, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
73-
#elif GLFW_EXPOSE_NATIVE_COCOA
73+
#elif defined(GLFW_EXPOSE_NATIVE_COCOA)
7474
MacOSWindow::setWindowAlwaysAbove(glfwGetCocoaWindow(windowMain));
7575
#endif
7676
}
@@ -138,7 +138,7 @@ void UImGui::WindowInternal::setWindowAlwaysBelow() const noexcept
138138
auto window = glfwGetWin32Window(windowMain);
139139
SetWindowPos(window, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
140140
//DefWindowProcA(window, WM_WINDOWPOSCHANGING, 0, 0);
141-
#elif GLFW_EXPOSE_NATIVE_COCOA
141+
#elif defined(GLFW_EXPOSE_NATIVE_COCOA)
142142
MacOSWindow::setWindowAlwaysBelow(glfwGetCocoaWindow(windowMain));
143143
#endif
144144
}
@@ -315,7 +315,7 @@ size_t UImGui::WindowInternal::getWindowID() const noexcept
315315
#endif
316316
#ifdef GLFW_EXPOSE_NATIVE_WIN32
317317
return GetWindowLong(glfwGetWin32Window(windowMain), GWL_ID);
318-
#elif GLFW_EXPOSE_NATIVE_COCOA
318+
#elif defined(GLFW_EXPOSE_NATIVE_COCOA)
319319
return (intptr_t)glfwGetCocoaWindow(windowMain);
320320
#endif
321321
return 0;

0 commit comments

Comments
 (0)