Add aare::ssize_t alias for MSVC
Build on RHEL9 / build (push) Successful in 3m18s
Build on RHEL8 / build (push) Successful in 3m49s
Run tests using data on local RHEL8 / build (push) Failing after 4m50s

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.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Erik FröjdhandClaude Fable 5.1 authored and GitHub committed 2026-10-05 14:01:31 +02:00
1 parent aed952cd5e
commit f1d92d2180
16 files changed
+34

No files matched your search

+1
View File
@@ -11,6 +11,7 @@
using aare::NDView;
using aare::num_elements;
using aare::Shape;
using aare::ssize_t;
static_assert(std::is_convertible_v<NDView<int, 2>, NDView<const int, 2>>);
static_assert(!std::is_convertible_v<NDView<const int, 2>, NDView<int, 2>>);