aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-07-31 09:20:49 +1000
committerNeil <nyamatongwe@gmail.com>2018-07-31 09:20:49 +1000
commit00c3ac5f5441fd25180b49672a2bb6a3e8ede121 (patch)
tree4bf02ff7240afaa87c67c3b223609bf2d2f4cb2b /include/Platform.h
parentc24d446bbfb5249e6db816d457d43ce5f5ea5ae1 (diff)
downloadscintilla-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 'include/Platform.h')
-rw-r--r--include/Platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 4299546ad..654460901 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