diff options
author | Neil <nyamatongwe@gmail.com> | 2022-02-16 09:39:20 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-02-16 09:39:20 +1100 |
commit | ac99bf8caef4efbff29d031ab04f7e44ab5234d9 (patch) | |
tree | 43e6b3df7f5e899afa3071a449afe2968a956a3a /src | |
parent | 5f97894b40d40d8f4cbb3196cfadb25ccc131bc4 (diff) | |
download | scintilla-mirror-ac99bf8caef4efbff29d031ab04f7e44ab5234d9.tar.gz |
Bug [#2315] Fix undefined macros. Fixes key map for GTK on macOS and Haiku build.
Diffstat (limited to 'src')
-rw-r--r-- | src/KeyMap.cxx | 2 | ||||
-rw-r--r-- | src/RunStyles.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index 8d6857546..da4f242a4 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -18,6 +18,8 @@ #include "ScintillaMessages.h" #include "Debugging.h" +#include "Geometry.h" +#include "Platform.h" #include "KeyMap.h" diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index e9d3f6e4e..ed4ecc216 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -309,7 +309,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) || PLAT_HAIKU +#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__) template class Scintilla::Internal::RunStyles<ptrdiff_t, int>; template class Scintilla::Internal::RunStyles<ptrdiff_t, char>; #endif |