summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-10-23 17:56:52 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-10-23 17:56:52 +0000
commit473436709959f09ed3ed415de0f17820d9188d09 (patch)
treebdb179d3e0035056f2cb2a586c2caaa936ddc87c /include/llvm-c
parent266acb9fee5bcb760d9dffe2afc10d62bb86b0e1 (diff)
llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.
FIXME: I don't think it'd be smart. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h
index 46ee59abb05..71a24819eac 100644
--- a/include/llvm-c/Target.h
+++ b/include/llvm-c/Target.h
@@ -22,6 +22,10 @@
#include "llvm-c/Core.h"
#include "llvm/Config/llvm-config.h"
+#if defined(_MSC_VER) && !defined(inline)
+#define inline __inline
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif