Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Feb 5, 2024
1 parent 04f994e commit 03721b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _pyceres/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>

+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#else
+#include <unistd.h>
+#endif
#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 03721b1

Please sign in to comment.