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

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

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

Visibility: public

Requested revision: 52de625df991126899d7f547e669a949bb85e923

Requested commit: 52de625df991126899d7f547e669a949bb85e923

Commit: 52de625df991126899d7f547e669a949bb85e923

Tree: 647ff1c27ec36bdc6788e86b7aa925d8f5287840

Author: Koakuma

Committer: Andrew Kelley

## 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

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

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