# zig.h: Define zig_gnuc for both GCC and Clang and stop using \_\_GNUC\_\_\. · gitcafe/zig

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

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

Visibility: public

Requested revision: d19e1919da7f9ecd36a4e9da1ffbe6a10c62d449

Requested commit: d19e1919da7f9ecd36a4e9da1ffbe6a10c62d449

Commit: d19e1919da7f9ecd36a4e9da1ffbe6a10c62d449

Tree: 9ac6cb0fc6ab6f2540d192afff26ff7a168c6676

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
zig.h: Define zig_gnuc for both GCC and Clang and stop using __GNUC__.

There's only one spot in the header where we want to handle GCC but not Clang,
so just add an extra check there.

```

## Parents

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

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