Skip to content

rtapi: detect Darwin byte order with compiler macros - #4958

Merged
BsAtHome merged 2 commits into
LinuxCNC:masterfrom
smoe:codex/darwin-byteorder-upstream
Dec 4, 2026
Merged

BsAtHome merged 2 commits into
LinuxCNC:masterfrom
smoe:codex/darwin-byteorder-upstream

Conversation

@smoe

@smoe smoe commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Select compiler target byte-order macros on MacOS/Darwin instead of depending on endian.h that is not available. Fail explicitly when those macros are unavailable or report an unsupported byte order.

Restrict the floating-point word-order mapping to MacOS/Darwin arm64 and x86_64. Reject other Apple architectures until their floating-point word order is verified.

Keep the existing kernel, Linux and FreeBSD branches unchanged.

Select compiler target byte-order macros on Darwin instead of depending
on an SDK-specific endian.h location. Fail explicitly when those macros
are unavailable or report an unsupported byte order.

Restrict the floating-point word-order mapping to Darwin arm64 and
x86_64, whose ABIs use the integer word order for doubles. Reject other
Apple architectures until their floating-point word order is verified.

Keep the existing kernel, Linux and FreeBSD branches unchanged.
Comment thread include/rtapi_byteorder.h Resolved
@BsAtHome
BsAtHome merged commit a913ece into LinuxCNC:master Dec 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants