Add aare::ssize_t alias for MSVC (#398)

- MSVC has no ssize_t, which made every translation unit fail on
Windows.
- Define aare::ssize_t in defs.hpp: the platform ssize_t on POSIX (so
nothing changes there) and std::ptrdiff_t on MSVC.
- Code inside the namespace picks it up unchanged; the few files that
use ssize_t outside the namespace get a using-declaration. FilePtr.hpp
now includes defs.hpp since it had no aare include.

Closing #393

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Erik Fröjdh
2026-10-05 19:13:43 +02:00
committed by GitHub
co-authored by Claude Fable 5.1
parent aed952cd5e
commit 4ac941a003
16 changed files with 34 additions and 0 deletions
@@ -16,6 +16,7 @@
#include <pybind11/stl/filesystem.h>
namespace py = pybind11;
using aare::ssize_t;
inline py::dtype multi_threaded_reader_numpy_dtype(const aare::Dtype &dtype) {
using aare::Dtype;
+1
View File
@@ -9,6 +9,7 @@
#include <pybind11/stl_bind.h>
namespace py = pybind11;
using aare::ssize_t;
template <typename DataType>
py::array_t<DataType>
+1
View File
@@ -11,6 +11,7 @@
namespace py = pybind11;
using namespace pybind11::literals;
using aare::ssize_t;
template <typename Model>
py::object