diff --git a/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc b/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc index 97909059b..38c2d6a57 100644 --- a/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc +++ b/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc @@ -5,6 +5,10 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +#if defined(_MSC_VER) +#include +typedef SSIZE_T ssize_t; +#endif #include #include