define c macros before importing llvm h files

Seems to matter on Ubuntu 16.04.

closes #1196
master
Andrew Kelley 2018-07-09 21:42:05 -04:00
parent a2834d48b9
commit 10cc49db1c
1 changed files with 2 additions and 0 deletions

View File

@ -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");