Skip to content

Commit

Permalink
fltk build fix
Browse files Browse the repository at this point in the history
Fixes Homebrew#29988 and Homebrew#33093

Tested with tiger-vnc which is used by fltk
  • Loading branch information
scr34m committed Oct 19, 2014
1 parent afa18bf commit 16f8dec
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Library/Formula/fltk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,26 @@ class Fl_Type {
+ friend Fl_Widget *make_type_browser(int,int,int,int,const char *);
friend class Fl_Window_Type;
virtual void setlabel(const char *); // virtual part of label(char*)

diff --git a/src/Fl_cocoa.mm.o b/src/Fl_cocoa.mm
index 1234567..1234567 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1322,7 +1322,7 @@
if (need_new_nsapp) [NSApplication sharedApplication];
NSAutoreleasePool *localPool;
localPool = [[NSAutoreleasePool alloc] init]; // never released
- [NSApp setDelegate:[[FLDelegate alloc] init]];
+ [(NSApplication *)NSApp setDelegate:[[FLDelegate alloc] init]];
if (need_new_nsapp) [NSApp finishLaunching];

// empty the event queue but keep system events for drag&drop of files at launch
@@ -2231,7 +2231,7 @@
w->set_visible();
if ( w->border() || (!w->modal() && !w->tooltip_window()) ) Fl::handle(FL_FOCUS, w);
Fl::first_window(w);
- [cw setDelegate:[NSApp delegate]];
+ [(NSFileManager *)cw setDelegate:[NSApp delegate]];
if (fl_show_iconic) {
fl_show_iconic = 0;
[cw miniaturize:nil];

0 comments on commit 16f8dec

Please sign in to comment.