summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-01-10 17:49:07 +0000
committerManolo Gouy <Manolo>2014-01-10 17:49:07 +0000
commitbcfdbe35e76bc66f43f8fe10cc5fd6cc1fe91d5a (patch)
tree411d8202d968573d83afbf9f50d4b072c7e29c31
parent70d97dd76d53b4042f9b9813c3dd3415d51f18b9 (diff)
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
-rw-r--r--src/Fl_Gl_Window.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 93e650a7c..8e179a6a3 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -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>