Fix Windows build (inttypes.h not available)
This commit is contained in:
@@ -16,7 +16,10 @@
|
|||||||
#warning "The C++ backend isn't supported when building with LLVM 2.9"
|
#warning "The C++ backend isn't supported when building with LLVM 2.9"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PRIx64
|
#ifndef PRIx64
|
||||||
#define PRIx64 "llx"
|
#define PRIx64 "llx"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
2
expr.cpp
2
expr.cpp
@@ -43,7 +43,9 @@
|
|||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "llvmutil.h"
|
#include "llvmutil.h"
|
||||||
|
#ifndef _MSC_VER
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#endif
|
||||||
#ifndef PRId64
|
#ifndef PRId64
|
||||||
#define PRId64 "lld"
|
#define PRId64 "lld"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user