fltk: fix on darwin

Compiling Fl_cocoa.mm...
Fl_cocoa.mm:4079:30: error: use of undeclared identifier 'version'; did
you mean 'Fl::version'?
    NSOperatingSystemVersion version = [[NSProcessInfo processInfo]
operatingSystemVersion];
                             ^~~~~~~
                             Fl::version
../FL/Fl.H:262:17: note: 'Fl::version' declared here
  static double version();
                ^
Fl_cocoa.mm:4079:5: error: use of undeclared identifier
'NSOperatingSystemVersion'
    NSOperatingSystemVersion version = [[NSProcessInfo processInfo]
operatingSystemVersion];
    ^
Fl_cocoa.mm:4080:9: error: use of undeclared identifier 'version'
    M = version.majorVersion;
        ^
Fl_cocoa.mm:4081:9: error: use of undeclared identifier 'version'
    m = version.minorVersion;
        ^
Fl_cocoa.mm:4082:9: error: use of undeclared identifier 'version'
    b = version.patchVersion;
        ^
5 errors generated.
This commit is contained in:
Dmitry Kalinkin
2016-10-23 21:19:14 -04:00
parent a4e43841a2
commit e35ddbec13
2 changed files with 22 additions and 0 deletions
@@ -21,6 +21,8 @@ composableDerivation.composableDerivation {} {
--replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
'';
patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ inputproto ]
++ (if stdenv.isDarwin