Closed Chaoses-Ib closed 1 week ago
@Chaoses-Ib This is a platform we did not yet think of, but 32-bit support should generally be supported.
I think this may be easily fixed by changing the line 31 in posix.h
into #if defined(_WIN64) || defined(_WIN32)
. Let me check it out. If this works I will create a pull request.
FYI, _WIN32
is "defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64", not only for 32-bit. The doc is here: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170
@Chaoses-Ib thanks for the hint! I could reproduce your bug and fix it by adding some defined(_WIN32)
here and there and by adjusting a usize
variable to u64
.
Required information
Operating system: Windows 11 24H2 10.0.26100.712
Rust version: rustc 1.80.0-nightly (9cdfe285c 2024-05-22)
Cargo version: cargo 1.80.0-nightly (84dc5dc11 2024-05-20)
iceoryx2 version:
main
branchObserved result or behaviour:
Obviously,
posix.h
only handles_WIN64
, not_WIN32
: https://github.com/eclipse-iceoryx/iceoryx2/blob/1f5c8a3dbe6a4fdcb786a97e181b2b3637575fc7/iceoryx2-pal/posix/src/c/posix.h#L31-L46Is 32-bit Windows not in the support list of iceoryx2?
Expected result or behaviour: Build successfully.
Conditions where it occurred / Performed steps:
i686-pc-windows-msvc
target