# zig.h: Use \_\_BYTE_ORDER\_\_ instead of \_\_LITTLE_ENDIAN\_\_ for endianness check\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 43a1b88bc822ad04d51ff0fa8f5704da52ca4202

Requested commit: 43a1b88bc822ad04d51ff0fa8f5704da52ca4202

Commit: 43a1b88bc822ad04d51ff0fa8f5704da52ca4202

Tree: 4844d83e37611d9bcd154af7d30a58e9d4fbe54f

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
zig.h: Use __BYTE_ORDER__ instead of __LITTLE_ENDIAN__ for endianness check.

The former is supported by most compilers while the latter is Clang-only.

```

## Parents

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

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