@@ -70,7 +70,7 @@ void UImGui::WindowInternal::setWindowAlwaysOnTop() const noexcept
70
70
#ifdef GLFW_EXPOSE_NATIVE_WIN32
71
71
auto window = glfwGetWin32Window (windowMain);
72
72
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)
74
74
MacOSWindow::setWindowAlwaysAbove (glfwGetCocoaWindow (windowMain));
75
75
#endif
76
76
}
@@ -138,7 +138,7 @@ void UImGui::WindowInternal::setWindowAlwaysBelow() const noexcept
138
138
auto window = glfwGetWin32Window (windowMain);
139
139
SetWindowPos (window, HWND_BOTTOM, 0 , 0 , 0 , 0 , SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
140
140
// DefWindowProcA(window, WM_WINDOWPOSCHANGING, 0, 0);
141
- #elif GLFW_EXPOSE_NATIVE_COCOA
141
+ #elif defined( GLFW_EXPOSE_NATIVE_COCOA)
142
142
MacOSWindow::setWindowAlwaysBelow (glfwGetCocoaWindow (windowMain));
143
143
#endif
144
144
}
@@ -315,7 +315,7 @@ size_t UImGui::WindowInternal::getWindowID() const noexcept
315
315
#endif
316
316
#ifdef GLFW_EXPOSE_NATIVE_WIN32
317
317
return GetWindowLong (glfwGetWin32Window (windowMain), GWL_ID);
318
- #elif GLFW_EXPOSE_NATIVE_COCOA
318
+ #elif defined( GLFW_EXPOSE_NATIVE_COCOA)
319
319
return (intptr_t )glfwGetCocoaWindow (windowMain);
320
320
#endif
321
321
return 0 ;
0 commit comments