Luflosi 6606f51636
Fix compilation on macOS 10.12
The constants `NSControlStateValueOn`, `NSControlStateValueOff` and `NSControlStateValueMixed` are only available for macOS 10.13 or above according to https://developer.apple.com/documentation/appkit/nscontrolstatevalueon?language=objc.
Without this commit, compilation fails with this message:
```
glfw/cocoa_window.m:1537:28: error: use of undeclared identifier 'NSControlStateValueOn'
              item.state = NSControlStateValueOn;
                           ^
glfw/cocoa_window.m:1539:28: error: use of undeclared identifier 'NSControlStateValueMixed'
              item.state = NSControlStateValueMixed;
                           ^
glfw/cocoa_window.m:1542:47: error: use of undeclared identifier 'NSControlStateValueOn'
          item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
                                              ^
glfw/cocoa_window.m:1542:71: error: use of undeclared identifier 'NSControlStateValueOff'
          item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
                                                                      ^
```
To fix this, simply redefine the constants to use the old and now deprecated constants on older macOS versions.

The code that causes this was introduced in 98519bf326834a126e89489a6a221ff21fab100f.
2021-04-22 10:53:34 +02:00
..
2021-03-25 16:05:14 +05:30
2021-04-22 10:53:34 +02:00
2020-06-09 20:18:07 +05:30
2020-06-09 20:18:07 +05:30
2021-03-31 08:54:10 -05:00
2019-09-24 19:15:35 +02:00
2021-04-11 07:58:27 +05:30
2020-07-23 23:56:32 +02:00
2019-12-08 22:37:47 +05:30
2019-08-30 15:32:20 +02:00
...
2021-04-19 20:12:20 +05:30
2020-06-23 16:35:13 +02:00
2021-04-15 08:57:47 +05:30
2021-03-30 14:23:17 -05:00
...
2021-01-17 07:24:12 +05:30