diff --git a/src/ModuleList.cpp b/src/ModuleList.cpp index 6b693b16e6..d442d204a5 100644 --- a/src/ModuleList.cpp +++ b/src/ModuleList.cpp @@ -48,21 +48,14 @@ LyXModule::LyXModule(string const & n, string const & i, vector LyXModule::prerequisites() const { -#ifdef TEX2LYX - return vector(); -#else if (!checked_) isAvailable(); return prerequisites_; -#endif } bool LyXModule::isAvailable() const { -#ifdef TEX2LYX - return true; -#else if (package_list_.empty()) return true; if (checked_) @@ -79,7 +72,6 @@ bool LyXModule::isAvailable() const } } return available_; -#endif } diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp index 1f5b14d96b..f750f424c2 100644 --- a/src/tex2lyx/tex2lyx.cpp +++ b/src/tex2lyx/tex2lyx.cpp @@ -18,6 +18,7 @@ #include "Context.h" #include "Encoding.h" #include "Format.h" +#include "LaTeXFeatures.h" #include "Layout.h" #include "LayoutFile.h" #include "LayoutModuleList.h" @@ -101,6 +102,12 @@ bool Formats::isZippedFile(FileName const&) const } +bool LaTeXFeatures::isAvailable(string const &) +{ + return true; +} + + // Keep the linker happy on Windows void lyx_exit(int) {}