I am not sure why it was done this way, but it is not really necessary.
Moreover gcc LTO does not like it.
#include <config.h>
+#include "LyXRC.h"
+
#include "support/ConsoleApplication.h"
#include "support/debug.h"
#include "support/FileName.h"
bool verbose = false;
// Dummy LyXRC support
-struct LyXRC {
- string icon_set;
-} lyxrc;
+LyXRC::LyXRC() {}
+LyXRC lyxrc;
// Keep the linker happy on Windows
void lyx_exit(int)
#include "Format.h"
#include "LaTeXFeatures.h"
+#include "LyXRC.h"
#include "output_xhtml.h"
#include "support/Messages.h"
//
-class LyXRC {} lyxrc;
+LyXRC::LyXRC() {}
+LyXRC lyxrc;
//