Skip to content

Commit 10cc49d

Browse files
committedJul 10, 2018
define c macros before importing llvm h files
Seems to matter on Ubuntu 16.04. closes #1196
·
0.15.10.3.0
1 parent a2834d4 commit 10cc49d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src-self-hosted/c.zig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
pub use @cImport({
2+
@cDefine("__STDC_CONSTANT_MACROS", "");
3+
@cDefine("__STDC_LIMIT_MACROS", "");
24
@cInclude("inttypes.h");
35
@cInclude("config.h");
46
@cInclude("zig_llvm.h");

0 commit comments

Comments
 (0)
Please sign in to comment.