Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / fltk / nsosv.patch
blob9e55b011b571b17bcd9ee058ac833e3742e19bda
1 diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
2 index 6f5b8b1..2c7763d 100644
3 --- a/src/Fl_cocoa.mm
4 +++ b/src/Fl_cocoa.mm
5 @@ -4074,15 +4074,6 @@ Window fl_xid(const Fl_Window* w)
6 static int calc_mac_os_version() {
7 int M, m, b = 0;
8 NSAutoreleasePool *localPool = [[NSAutoreleasePool alloc] init];
9 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10
10 - if ([NSProcessInfo instancesRespondToSelector:@selector(operatingSystemVersion)]) {
11 - NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
12 - M = version.majorVersion;
13 - m = version.minorVersion;
14 - b = version.patchVersion;
15 - }
16 - else
17 -#endif
19 NSDictionary * sv = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"];
20 const char *s = [[sv objectForKey:@"ProductVersion"] UTF8String];