# Fix floating point parsing on BE systems \(\#7256\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5317f00e047f35fbee237caa29f45a69152bee81)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5317f00e047f35fbee237caa29f45a69152bee81

Requested commit: 5317f00e047f35fbee237caa29f45a69152bee81

Commit: 5317f00e047f35fbee237caa29f45a69152bee81

Tree: 28c4b0b854c836b6821f3d8245f6b0f9f37bcc28

Author: Koakuma

Committer: GitHub

## Message

```
Fix floating point parsing on BE systems (#7256)

* Fix floating point parsing on BE systems

* Load the appropriate endian.h files for macOS and BSD

* Add endian definition for Windows and extra check for ldshape selection

* Fix endian macro definition for macOS

Apparently their macros are defined without a leading __.

* Define new macro for endian checking purposes

This is gross and I really do not like the lack of standardization
around this part, but what can I do?
```

## Parents

- [7bbd369fbbf07fdcc5bb79d74a1371e1f44a6641](https://git.cafe/gitcafe/zig/commit/7bbd369fbbf07fdcc5bb79d74a1371e1f44a6641?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5317f00e047f35fbee237caa29f45a69152bee81?format=markdown)
