commit 704c087bd19b1c745fadbe32adf41a53911c6913 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Thu Feb 6 13:03:26 2025 +0100
Compilation fixes Not completely sure whether the direct inclusion of string.h is the best way. --- src/mathed/InsetMathSymbol.cpp | 2 ++ src/mathed/MathStream.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp index 69d6b03d98..29b2734f8e 100644 --- a/src/mathed/InsetMathSymbol.cpp +++ b/src/mathed/InsetMathSymbol.cpp @@ -26,6 +26,8 @@ #include "support/textutils.h" #include "support/unique_ptr.h" +#include <string.h>// for strcomp + using namespace std; namespace lyx { diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp index ea1459e5d8..158d9932a0 100644 --- a/src/mathed/MathStream.cpp +++ b/src/mathed/MathStream.cpp @@ -682,7 +682,7 @@ MathMLStream & operator<<(MathMLStream & ms, docstring const & s) // Nothing to do: unicode_alphanum_variants only has // the code point, not the full XML/HTML entity. } else if (within_entity && c == ';') { // End of entity. - if (buf.starts_with('x')) { + if (support::prefixIs(buf, 'x')) { // An HTML entity is typically α, but // unicode_alpha_num_variants has 0x3B1. buf.insert(0, from_ascii("0")); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs