Skip to content

Commit

Permalink
To force linking of Fl_Gl_Device_Plugin.o when Fl_Gl_Window.o is link…
Browse files Browse the repository at this point in the history
…ed, an additional volatile

seems necessary, at least on Mac OS with optimized compilation.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jan 10, 2014
1 parent 70d97dd commit bcfdbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Gl_Window.cxx
Expand Up @@ -24,7 +24,7 @@ extern int fl_gl_load_plugin;
extern void gl_texture_reset();
#endif

static int temp = fl_gl_load_plugin; // don't remove me! I force linking of Fl_Gl_Device_Plugin.o
static volatile int temp = fl_gl_load_plugin; // don't remove me! I force linking of Fl_Gl_Device_Plugin.o

#include <FL/Fl.H>
#include <FL/x.H>
Expand Down

0 comments on commit bcfdbe3

Please sign in to comment.