aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/Platform.h5
-rw-r--r--src/RunStyles.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h
index a70a00b78..c1924eda5 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -25,6 +25,7 @@
#define PLAT_FOX 0
#define PLAT_CURSES 0
#define PLAT_TK 0
+#define PLAT_HAIKU 0
#if defined(FOX)
#undef PLAT_FOX
@@ -38,6 +39,10 @@
#undef PLAT_CURSES
#define PLAT_CURSES 1
+#elif defined(__HAIKU__)
+#undef PLAT_HAIKU
+#define PLAT_HAIKU 1
+
#elif defined(SCINTILLA_QT)
#undef PLAT_QT
#define PLAT_QT 1
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx
index 44d694265..100ca399d 100644
--- a/src/RunStyles.cxx
+++ b/src/RunStyles.cxx
@@ -309,7 +309,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