From 00c3ac5f5441fd25180b49672a2bb6a3e8ede121 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 31 Jul 2018 09:20:49 +1000 Subject: 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. --- src/RunStyles.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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::Check() const { template class Scintilla::RunStyles; template class Scintilla::RunStyles; -#if PTRDIFF_MAX != INT_MAX +#if (PTRDIFF_MAX != INT_MAX) || PLAT_HAIKU template class Scintilla::RunStyles; template class Scintilla::RunStyles; #endif -- cgit v1.2.3