]> git.lyx.org Git - lyx.git/blobdiff - src/WorkArea.C
fix "make dist" target
[lyx.git] / src / WorkArea.C
index 8483620d142be81c6be8a719347d19d3e27e8352..2e7a3222ff8cec418e76c9b075567c1f20f85d6c 100644 (file)
@@ -19,7 +19,6 @@
 #include "debug.h"
 #include "support/lstrings.h"
 #include "LyXView.h"
-#include "lyxfunc.h"
 
 #if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 #include "lyxlookup.h"
@@ -35,7 +34,6 @@ FL_OBJECT * figinset_canvas;
 
 namespace {
 
-//static
 inline
 void waitForX()
 {
@@ -482,11 +480,12 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
 }
 
 
-static string clipboard_selection;
-static bool clipboard_read = false;
+namespace {
 
-extern "C" {
-       static
+string clipboard_selection;
+bool clipboard_read = false;
+
+extern "C"
 int request_clipboard_cb(FL_OBJECT * /*ob*/, long /*type*/,
                        void const * data, long size) 
 {
@@ -499,8 +498,8 @@ int request_clipboard_cb(FL_OBJECT * /*ob*/, long /*type*/,
        clipboard_read = true;
        return 0;
 }
-} // extern "C"
 
+} // namespace anon
 
 string const WorkArea::getClipboard() const 
 {