Win32: Make thread functions backend independent

This is work towards allowing the Null backend to build for Windows
using the Win32 threading API, without the Win32 backend being enabled.
This commit is contained in:
Camilla Löwy
2021-07-18 20:31:26 +02:00
parent f5758d75d0
commit 35f3b58c21
4 changed files with 51 additions and 21 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ if (_GLFW_COCOA)
nsgl_context.m egl_context.c osmesa_context.c)
elseif (_GLFW_WIN32)
target_compile_definitions(glfw PRIVATE _GLFW_WIN32)
target_sources(glfw PRIVATE win32_platform.h win32_joystick.h
target_sources(glfw PRIVATE win32_platform.h win32_joystick.h win32_thread.h
win32_init.c win32_joystick.c win32_monitor.c
win32_time.c win32_thread.c win32_window.c
wgl_context.c egl_context.c osmesa_context.c)