From a493d638574ac81d3b7c8210b9ff5089d52e65fc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 8 Oct 2025 19:15:29 +0300 Subject: Revert "support ptrdiff_t if it has the same storage size as int, but does *not* alias it" This reverts commit 0953ffeee80abdd8e79ddacc7066eb02c78968e7. --- src/RunStyles.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/RunStyles.cxx') diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 4fac2c2b3..848670ba9 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -319,10 +319,9 @@ void RunStyles::Check() const { } } -// should also cover all possible types underlying ptrdiff_t (Sci::Position) template class Scintilla::Internal::RunStyles; template class Scintilla::Internal::RunStyles; -template class Scintilla::Internal::RunStyles; -template class Scintilla::Internal::RunStyles; -template class Scintilla::Internal::RunStyles; -template class Scintilla::Internal::RunStyles; +#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__) +template class Scintilla::Internal::RunStyles; +template class Scintilla::Internal::RunStyles; +#endif -- cgit v1.2.3