diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-07-31 09:20:49 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-07-31 09:20:49 +1000 |
| commit | 00c3ac5f5441fd25180b49672a2bb6a3e8ede121 (patch) | |
| tree | 4bf02ff7240afaa87c67c3b223609bf2d2f4cb2b /src | |
| parent | c24d446bbfb5249e6db816d457d43ce5f5ea5ae1 (diff) | |
| download | scintilla-mirror-00c3ac5f5441fd25180b49672a2bb6a3e8ede121.tar.gz | |
Backport: Define PLAT_HAIKU and use to avoid a reported compilation problem on 32-bit
Haiku where ptrdiff_t and int are the same size but different types.
Backport of changeset 7070:406da729a8b3.
Diffstat (limited to 'src')
| -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 7f385017a..ad3084a01 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -308,7 +308,7 @@ void RunStyles<DISTANCE, STYLE>::Check() const { template class Scintilla::RunStyles<int, int>; template class Scintilla::RunStyles<int, char>; -#if PTRDIFF_MAX != INT_MAX +#if (PTRDIFF_MAX != INT_MAX) || PLAT_HAIKU template class Scintilla::RunStyles<ptrdiff_t, int>; template class Scintilla::RunStyles<ptrdiff_t, char>; #endif |
