diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-21 23:04:57 +0000 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-21 23:04:57 +0000 |
commit | 7ccb74055fd37f22de83e4fbe42c146b6dd5656d (patch) | |
tree | 81bf75571aaab38c773bfb9b473466ea95ef1feb /src/RunStyles.cxx | |
parent | 26df8def5e3ad506c514a42262d98584011d5446 (diff) | |
download | scintilla-mirror-7ccb74055fd37f22de83e4fbe42c146b6dd5656d.tar.gz |
support NetBSD on ARMv6sciteco-rel-5-5-4
* LineVector<T> is only instantiated for Sci::Position.
It instantiates Partitioning<T> as well and Partitioning<T>::InsertPartitions()
is called with a Sci::Position.
This only couldn't cause problems if ptrdiff_t aliases to int.
In either case, I don't see why we need LineVector<int> at all.
* We need RunStyles<ptrdiff_t> as well since ptrdiff_t is long int
and we instantiate only RunStyles<int>.
Both types have the same storage size but are still different.
See also this discussion about the same workaround for Haiku:
https://groups.google.com/g/scintilla-interest/c/xPXquJUIXo8/m/BLXBpTTgBwAJ
Diffstat (limited to 'src/RunStyles.cxx')
-rw-r--r-- | src/RunStyles.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 848670ba9..508ab5ba4 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -321,7 +321,7 @@ void RunStyles<DISTANCE, STYLE>::Check() const { template class Scintilla::Internal::RunStyles<int, int>; template class Scintilla::Internal::RunStyles<int, char>; -#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__) +#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__) || defined(__NetBSD__) template class Scintilla::Internal::RunStyles<ptrdiff_t, int>; template class Scintilla::Internal::RunStyles<ptrdiff_t, char>; #endif |