Fix unused function on macOS

This commit is contained in:
Kovid Goyal 2018-11-22 15:49:01 +05:30
parent 0b3c8210f3
commit b269cab0b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -310,6 +310,7 @@ make_os_window_context_current(OSWindow *w) {
} }
#ifndef __APPLE__
static GLFWmonitor* static GLFWmonitor*
current_monitor(GLFWwindow *window) { current_monitor(GLFWwindow *window) {
// Find the monitor that has the maximum overlap with this window // Find the monitor that has the maximum overlap with this window
@ -344,6 +345,7 @@ current_monitor(GLFWwindow *window) {
return bestmonitor; return bestmonitor;
} }
#endif
static inline void static inline void
get_window_dpi(GLFWwindow *w, double *x, double *y) { get_window_dpi(GLFWwindow *w, double *x, double *y) {