diff --git a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp index 18c972444..c5d1ba5e4 100644 --- a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp +++ b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #else // USE_MMAP_FOR_DICTIONARY #include #endif // USE_MMAP_FOR_DICTIONARY diff --git a/native/src/proximity_info.h b/native/src/proximity_info.h index 35e354c6e..19b84cc11 100644 --- a/native/src/proximity_info.h +++ b/native/src/proximity_info.h @@ -21,6 +21,10 @@ #include "defines.h" +#ifndef NULL +#define NULL 0 +#endif + namespace latinime { class Correction;