# std: Make C allocator respect the required alignment · gitcafe/zig

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

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

Visibility: public

Requested revision: 806097c165ce26d0a1817a0f2189b20ad5ef796d

Requested commit: 806097c165ce26d0a1817a0f2189b20ad5ef796d

Commit: 806097c165ce26d0a1817a0f2189b20ad5ef796d

Tree: da000cf35fcd10f6ab17de15dea188d509e60d82

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Make C allocator respect the required alignment

Use posix_memalign where available and the _aligned_{malloc,free} API on
Windows.

Closes #3783

```

## Parents

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

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