Fix headless build

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-12-18 11:49:08 +00:00
parent 6f9013da16
commit 31adcb5622
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -36,6 +36,7 @@
"int such_highlight_much_wow() { return 1337; }\n"
#define DEFAULT_WIDTH 30
#if 0 // ndef HEADLESS
// utils
static const TextEditor::LanguageDefinition& getLangFromString(const std::string& lang)
{
@ -57,6 +58,7 @@ static const TextEditor::LanguageDefinition& getLangFromString(const std::string
static const TextEditor::LanguageDefinition none;
return none;
}
#endif
struct TextEditorModule : Module {
std::string file;