+// The following code forces a reference to all of the Scintilla lexers.
+// If we don't do something like this, then the linker tends to "optimize"
+// them away. (eric@sourcegear.com)
+
+static int wxForceScintillaLexers(void)
+{
+ extern LexerModule lmCPP;
+ extern LexerModule lmHTML;
+ extern LexerModule lmXML;
+ extern LexerModule lmProps;
+ extern LexerModule lmErrorList;
+ extern LexerModule lmMake;
+ extern LexerModule lmBatch;
+ extern LexerModule lmPerl;
+ extern LexerModule lmPython;
+ extern LexerModule lmSQL;
+ extern LexerModule lmVB;
+ extern LexerModule lmLua;
+
+ if (
+ &lmCPP
+ && &lmHTML
+ && &lmXML
+ && &lmProps
+ && &lmErrorList
+ && &lmMake
+ && &lmBatch
+ && &lmPerl
+ && &lmPython
+ && &lmSQL
+ && &lmVB
+ && &lmLua
+ )
+ {
+ return 1;
+ }
+}
+