diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-09 21:42:05 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-09 22:05:22 -0400 |
| commit | 10cc49db1ca1f9b3ac63277c0742e05f6412f3c6 (patch) | |
| tree | ac94819b9f88e23c1788614164c03b1da82c6794 | |
| parent | a2834d48b9480286549fd9882d67e874396eec79 (diff) | |
| download | zig-10cc49db1ca1f9b3ac63277c0742e05f6412f3c6.tar.gz zig-10cc49db1ca1f9b3ac63277c0742e05f6412f3c6.zip | |
define c macros before importing llvm h files
Seems to matter on Ubuntu 16.04.
closes #1196
| -rw-r--r-- | src-self-hosted/c.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src-self-hosted/c.zig b/src-self-hosted/c.zig index 08060fbe3a..3912462985 100644 --- a/src-self-hosted/c.zig +++ b/src-self-hosted/c.zig @@ -1,4 +1,6 @@ pub use @cImport({ + @cDefine("__STDC_CONSTANT_MACROS", ""); + @cDefine("__STDC_LIMIT_MACROS", ""); @cInclude("inttypes.h"); @cInclude("config.h"); @cInclude("zig_llvm.h"); |
