To force linking of Fl_Gl_Device_Plugin.o when Fl_Gl_Window.o is linked, 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
This commit is contained in:
parent
70d97dd76d
commit
bcfdbe35e7
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user