Skip to content

Commit

Permalink
define c macros before importing llvm h files
Browse files Browse the repository at this point in the history
Seems to matter on Ubuntu 16.04.

closes #1196
  • Loading branch information
andrewrk committed Jul 10, 2018
1 parent a2834d4 commit 10cc49d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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");
Expand Down

0 comments on commit 10cc49d

Please sign in to comment.