Skip to content

Commit

Permalink
Add missing ssize_t
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe authored Feb 3, 2024
1 parent 6f12e7f commit b2457a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _pyceres/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>

+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#else
+#include <unistd.h>
+#endif

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

Expand Down

0 comments on commit b2457a8

Please sign in to comment.