mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
bec6e7565b
Looking into the definition of kIOMainPortDefault, the following
description can be found:
When specifying a main port to IOKit functions, the NULL argument
indicates "use the default". This is a synonym for NULL, if you'd
rather use a named constant.
Thus, we do not have to utilize an external symbol for the identifier
of the default main IOKit port, but MACH_PORT_NULL suffice. This
simplifies compatibility between macOS versions as the symbol was
renamed with macOS 12.0.
Fixes #1985
Closes #1994
(cherry picked from commit 544790666b)