Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Fixed msvc compiler error: error C2065: 'ssize_t': undeclared identi… #1279

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/fasttext_module/fasttext/pybind/fasttext_pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#include <sstream>
#include <stdexcept>

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

using namespace pybind11::literals;
namespace py = pybind11;

Expand Down