From 2f63047e3790da7a881d60246fce99bc54233504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Iva=C4=8Di=C4=8D?= Date: Sun, 26 Jun 2022 08:15:47 +0200 Subject: [PATCH] Fixed msvc compiler error: error C2065: 'ssize_t': undeclared identifier --- python/fasttext_module/fasttext/pybind/fasttext_pybind.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc b/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc index 4cd1d3728..a7051d375 100644 --- a/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc +++ b/python/fasttext_module/fasttext/pybind/fasttext_pybind.cc @@ -20,6 +20,11 @@ #include #include +#if defined(_MSC_VER) +#include +typedef SSIZE_T ssize_t; +#endif + using namespace pybind11::literals; namespace py = pybind11;